diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-06-01 12:30:52 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-06-03 09:19:15 (GMT) |
commit | 9ecba4c0c963272bbbac627a6742153b5f6f361f (patch) | |
tree | 0df90c98e76344af770890d7c617e27126aeeabd /src/gui/widgets/qprogressbar.h | |
parent | 889e13652e00ba64060e7b62ed3377ea04d44faa (diff) | |
download | Qt-9ecba4c0c963272bbbac627a6742153b5f6f361f.zip Qt-9ecba4c0c963272bbbac627a6742153b5f6f361f.tar.gz Qt-9ecba4c0c963272bbbac627a6742153b5f6f361f.tar.bz2 |
QProgressBar: make accessors const.
Task-number: QTBUG-11039
Reviewed-by: Thierry
Diffstat (limited to 'src/gui/widgets/qprogressbar.h')
-rw-r--r-- | src/gui/widgets/qprogressbar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/qprogressbar.h b/src/gui/widgets/qprogressbar.h index b461a21..58bc8b2 100644 --- a/src/gui/widgets/qprogressbar.h +++ b/src/gui/widgets/qprogressbar.h @@ -93,9 +93,11 @@ public: Qt::Orientation orientation() const; void setInvertedAppearance(bool invert); - bool invertedAppearance(); + bool invertedAppearance(); //### Qt5 make const + bool invertedAppearance() const { return const_cast<QProgressBar *>(this)->invertedAppearance(); } void setTextDirection(QProgressBar::Direction textDirection); - QProgressBar::Direction textDirection(); + QProgressBar::Direction textDirection(); //### Qt5 make const + QProgressBar::Direction textDirection() const { return const_cast<QProgressBar *>(this)->textDirection(); } void setFormat(const QString &format); QString format() const; |