From f74c3419543058e6a97943f421bb74261ae1b10c Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 19 Jun 2019 15:31:52 +0200 Subject: * 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. --- src/statusbar.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/statusbar.cpp') 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); -- cgit v1.3.1