aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/progressmanager/progressbar.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-06-22 14:41:02 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-06-23 10:17:51 +0000
commit95e277d31a2e47ab6a199979c68243f6f6210836 (patch)
tree97fa1021a02cfaf367ce09cc8e69a34478d505ee /src/plugins/coreplugin/progressmanager/progressbar.h
parent88fd4043d864e5b625cd9e29611fc7098c6498e7 (diff)
ProgressManager: Simplify code in ProgressBar
Use member initialization, remove unnecessary destructor, remove QLatin1* Change-Id: I116fdd7439b30c51e672402789382f2265543345 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/progressmanager/progressbar.h')
-rw-r--r--src/plugins/coreplugin/progressmanager/progressbar.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/plugins/coreplugin/progressmanager/progressbar.h b/src/plugins/coreplugin/progressmanager/progressbar.h
index e2334447a2..148813092a 100644
--- a/src/plugins/coreplugin/progressmanager/progressbar.h
+++ b/src/plugins/coreplugin/progressmanager/progressbar.h
@@ -39,7 +39,6 @@ class ProgressBar : public QWidget
public:
explicit ProgressBar(QWidget *parent = 0);
- ~ProgressBar();
QString title() const;
void setTitle(const QString &title);
@@ -77,16 +76,16 @@ private:
QString m_text;
QString m_title;
- bool m_titleVisible;
- bool m_separatorVisible;
- bool m_cancelEnabled;
- int m_progressHeight;
- int m_minimum;
- int m_maximum;
- int m_value;
- float m_cancelButtonFader;
- bool m_finished;
- bool m_error;
+ bool m_titleVisible = true;
+ bool m_separatorVisible = true;
+ bool m_cancelEnabled = true;
+ bool m_finished = false;
+ bool m_error = false;
+ float m_cancelButtonFader = 0.0;
+ int m_progressHeight = 0;
+ int m_minimum = 1;
+ int m_maximum = 100;
+ int m_value = 1;
QRect m_cancelRect;
};