summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_itemviews_qitemselectionmodel.cpp
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2009-07-22 14:21:43 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2009-07-23 14:33:10 (GMT)
commit89fc5334c2ef0b92114284d0ffb26d65f76fdb3b (patch)
tree515915c26c1765a704f4525d744e1f4b98e7badb /doc/src/snippets/code/src_gui_itemviews_qitemselectionmodel.cpp
parent29016ad7cf1e11ae9967748f91acac6f0054bbf8 (diff)
downloadQt-89fc5334c2ef0b92114284d0ffb26d65f76fdb3b.zip
Qt-89fc5334c2ef0b92114284d0ffb26d65f76fdb3b.tar.gz
Qt-89fc5334c2ef0b92114284d0ffb26d65f76fdb3b.tar.bz2
Qt/EL mouse and keyboard driver cleanup.
* removed the vr41xx, yopy and sl5000 drivers (old PDAs) * removed the bus mouse driver (ISA days should be over) * renamed the LinuxIS mouse driver to LinuxInput (consistency with the key driver) * unified the LinuxInput mouse and key driver I/O handling Reviewed-By: Paul
Diffstat (limited to 'doc/src/snippets/code/src_gui_itemviews_qitemselectionmodel.cpp')
0 files changed, 0 insertions, 0 deletions
g the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] QToolButton *button = new QToolButton; button->setIcon(QIcon("open.xpm")); //! [0] //! [1] button->setIcon(QIcon()); //! [1] //! [2] void MyWidget::drawIcon(QPainter *painter, QPoint pos) { QPixmap pixmap = icon.pixmap(QSize(22, 22), isEnabled() ? QIcon::Normal : QIcon::Disabled, isOn() ? QIcon::On : QIcon::Off); painter->drawPixmap(pos, pixmap); } //! [2] //! [3] QIcon undoicon = QIcon::fromTheme("edit-undo"); //! [3] //! [4] QIcon undoicon = QIcon::fromTheme("edit-undo", QIcon(":/undo.png")); //! [4]