src/gui/widgets/qprogressbar.h
changeset 33 3e2da88830cd
parent 18 2f34d5167611
--- a/src/gui/widgets/qprogressbar.h	Tue Jul 06 15:10:48 2010 +0300
+++ b/src/gui/widgets/qprogressbar.h	Wed Aug 18 10:37:55 2010 +0300
@@ -93,9 +93,11 @@
     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;