ProgessBar: Distangle finished from progress

That is allow progress to be at 100% and yet unfinished.

Task-Nr: QTCREATORBUG-4858
This commit is contained in:
dt
2011-05-12 13:21:41 +02:00
parent d72bddc7da
commit beadef9a51
3 changed files with 17 additions and 7 deletions

View File

@@ -60,9 +60,11 @@ public:
int minimum() const { return m_minimum; }
int maximum() const { return m_maximum; }
int value() const { return m_value; }
bool finished() const { return m_finished; }
void reset();
void setRange(int minimum, int maximum);
void setValue(int value);
void setFinished(bool b);
float cancelButtonFader() { return m_cancelButtonFader; }
void setCancelButtonFader(float value) { update(); m_cancelButtonFader= value;}
bool event(QEvent *);
@@ -83,6 +85,7 @@ private:
int m_maximum;
int m_value;
float m_cancelButtonFader;
bool m_finished;
};
} // namespace Internal