diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-06 22:37:56 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-06 22:37:56 -0600 |
commit | d1c672237288068a5e3777d16277221912bc0088 (patch) | |
tree | d811e1eb3634399e65f9e37bfb64ff7b142c3eb4 /src/widgets/qprogressbar.h | |
parent | 37a8b8a9126f613eb94ee76e3476d3c6a5830018 (diff) | |
download | qt3-d1c672237288068a5e3777d16277221912bc0088.tar.gz qt3-d1c672237288068a5e3777d16277221912bc0088.zip |
Add ability to set progressbar orientation
Diffstat (limited to 'src/widgets/qprogressbar.h')
-rw-r--r-- | src/widgets/qprogressbar.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/qprogressbar.h b/src/widgets/qprogressbar.h index 2c4f039..ac69914 100644 --- a/src/widgets/qprogressbar.h +++ b/src/widgets/qprogressbar.h @@ -60,6 +60,7 @@ class Q_EXPORT QProgressBar : public QFrame Q_PROPERTY( bool centerIndicator READ centerIndicator WRITE setCenterIndicator ) Q_PROPERTY( bool indicatorFollowsStyle READ indicatorFollowsStyle WRITE setIndicatorFollowsStyle ) Q_PROPERTY( bool percentageVisible READ percentageVisible WRITE setPercentageVisible ) + Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) public: QProgressBar( QWidget* parent=0, const char* name=0, WFlags f=0 ); @@ -111,6 +112,13 @@ private: // Disabled copy constructor and operator= QProgressBar( const QProgressBar & ); QProgressBar &operator=( const QProgressBar & ); #endif + +public: + virtual void setOrientation ( Orientation ); + Orientation orientation () const; + +private: + Orientation m_orientation; }; |