diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-18 10:39:08 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-18 11:05:10 (GMT) |
commit | f3ea09192a6f17d2f2b607272eb5ad2ba47536e5 (patch) | |
tree | a4c05bdaf567be8ca20fcb65286b9f4874a4e1d0 /doc | |
parent | b6d03bb2658c9926f2e8ad424e3014a5db0451ec (diff) | |
download | Qt-f3ea09192a6f17d2f2b607272eb5ad2ba47536e5.zip Qt-f3ea09192a6f17d2f2b607272eb5ad2ba47536e5.tar.gz Qt-f3ea09192a6f17d2f2b607272eb5ad2ba47536e5.tar.bz2 |
doc: Fixed use of Qt 3 support function in QIcon doc snippet
isOn() is an Qt 3 support member of QAbstractButton, isChecked() should
be used instead.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/code/src_gui_image_qicon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/code/src_gui_image_qicon.cpp b/doc/src/snippets/code/src_gui_image_qicon.cpp index df1fa82..e0dcfa6 100644 --- a/doc/src/snippets/code/src_gui_image_qicon.cpp +++ b/doc/src/snippets/code/src_gui_image_qicon.cpp @@ -56,8 +56,8 @@ void MyWidget::drawIcon(QPainter *painter, QPoint pos) QPixmap pixmap = icon.pixmap(QSize(22, 22), isEnabled() ? QIcon::Normal : QIcon::Disabled, - isOn() ? QIcon::On - : QIcon::Off); + isChecked() ? QIcon::On + : QIcon::Off); painter->drawPixmap(pos, pixmap); } //! [2] |