summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-06-01 14:30:52 +0200
committerOlivier Goffart <olivier.goffart@nokia.com>2010-06-03 11:19:15 +0200
commit9ecba4c0c963272bbbac627a6742153b5f6f361f (patch)
tree0df90c98e76344af770890d7c617e27126aeeabd
parent889e13652e00ba64060e7b62ed3377ea04d44faa (diff)
downloadqt4-tools-9ecba4c0c963272bbbac627a6742153b5f6f361f.tar.gz
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 b461a21390..58bc8b2b1f 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;