diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-06-19 15:31:52 +0200 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-06-19 15:31:52 +0200 |
| commit | f74c3419543058e6a97943f421bb74261ae1b10c (patch) | |
| tree | b32e9b83d4fc80897a2dcf6f09d30a983019aad8 /src/statusbar.cpp | |
| parent | f883a14823bdc3ed853b23d425f73ff55068ec55 (diff) | |
* Made the loadingbar a little bigger and more centered in the statusbar.
* Changed themes to remove the ugly separator line between widgets on the statusbar.
Diffstat (limited to 'src/statusbar.cpp')
| -rw-r--r-- | src/statusbar.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp index 01449202..8ad5bea1 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -9,15 +9,26 @@ StatusBar::StatusBar(QStatusBar* bar, Ui::MainWindow* ui) : m_update(new StatusBarAction(ui->actionUpdate)), m_api(new QLabel) { + QWidget* spacer1 = new QWidget; + spacer1->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + spacer1->setHidden(true); + spacer1->setVisible(true); + m_bar->addPermanentWidget(spacer1, 0); m_bar->addPermanentWidget(m_progress); + QWidget* spacer2 = new QWidget; + spacer2->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + spacer2->setHidden(true); + spacer2->setVisible(true); + m_bar->addPermanentWidget(spacer2,0); m_bar->addPermanentWidget(m_notifications); m_bar->addPermanentWidget(m_update); m_bar->addPermanentWidget(m_api); + m_progress->setTextVisible(true); m_progress->setRange(0, 100); - m_progress->setMaximumWidth(150); - m_progress->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); + m_progress->setMaximumWidth(300); + m_progress->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_update->set(false); m_notifications->set(false); |
