diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-03-22 14:14:21 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-04-09 15:50:25 +0200 |
commit | 5a3dfb767f9585be1049509db0441c93278e0163 (patch) | |
tree | fe942099ae081595c09daecb360369c44d3ed032 /src/plugins/coreplugin/progressmanager/progressbar.h | |
parent | c5f7cc62bbb2d5b5eaf7f317294e7b748312b39f (diff) |
Move progress indicators out of mode bar.
This both allows the mode bar to be hidden optionally, and can give the
progress information a bit more room (e.g. for titles).
Progress information can either be shown in "pop up" windows in the
lower left corner of the main window (hiding window contents below),
or in a summary progress bar in the bottom right corner of the status bar.
Hovering the summary progress bar temporarily pops up the detailed
progress information. Keyboard can be used to switch between the two
views.
Change-Id: Ic6d6ab4fd43906e84b480c8ddf8eae5f5852e1f3
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/coreplugin/progressmanager/progressbar.h')
-rw-r--r-- | src/plugins/coreplugin/progressmanager/progressbar.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/progressmanager/progressbar.h b/src/plugins/coreplugin/progressmanager/progressbar.h index bbc5789fcc..ef88731a95 100644 --- a/src/plugins/coreplugin/progressmanager/progressbar.h +++ b/src/plugins/coreplugin/progressmanager/progressbar.h @@ -48,6 +48,12 @@ public: QString title() const; void setTitle(const QString &title); + void setTitleVisible(bool visible); + bool isTitleVisible() const; + void setSeparatorVisible(bool visible); + bool isSeparatorVisible() const; + void setCancelEnabled(bool enabled); + bool isCancelEnabled() const; void setError(bool on); bool hasError() const; QSize sizeHint() const; @@ -75,6 +81,9 @@ private: QImage bar; QString m_text; QString m_title; + bool m_titleVisible; + bool m_separatorVisible; + bool m_cancelEnabled; int m_progressHeight; int m_minimum; int m_maximum; |