summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-06-01 12:30:52 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-06-03 09:19:15 (GMT)
commit9ecba4c0c963272bbbac627a6742153b5f6f361f (patch)
tree0df90c98e76344af770890d7c617e27126aeeabd
parent889e13652e00ba64060e7b62ed3377ea04d44faa (diff)
downloadQt-9ecba4c0c963272bbbac627a6742153b5f6f361f.zip
Qt-9ecba4c0c963272bbbac627a6742153b5f6f361f.tar.gz
Qt-9ecba4c0c963272bbbac627a6742153b5f6f361f.tar.bz2
QProgressBar: make accessors const.
Task-number: QTBUG-11039 Reviewed-by: Thierry
-rw-r--r--src/gui/widgets/qprogressbar.h6
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;