summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-03-18 10:39:08 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-03-18 11:05:10 (GMT)
commitf3ea09192a6f17d2f2b607272eb5ad2ba47536e5 (patch)
treea4c05bdaf567be8ca20fcb65286b9f4874a4e1d0 /doc/src/snippets
parentb6d03bb2658c9926f2e8ad424e3014a5db0451ec (diff)
downloadQt-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/src/snippets')
-rw-r--r--doc/src/snippets/code/src_gui_image_qicon.cpp4
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]