Skip to content
Snippets Groups Projects
Commit 6b196ca3 authored by Matthias's avatar Matthias
Browse files

Improve layout (fixed size of view selection bar in any circumstances)

parent f843f21e
No related branches found
No related tags found
No related merge requests found
...@@ -338,6 +338,13 @@ void MainWindow::updateViewSelectionButtonsGeometry() const { ...@@ -338,6 +338,13 @@ void MainWindow::updateViewSelectionButtonsGeometry() const {
b->setFixedSize(buttonExtent, buttonExtent); b->setFixedSize(buttonExtent, buttonExtent);
b->setIconSize({iconExtent, iconExtent}); b->setIconSize({iconExtent, iconExtent});
} }
// set fixed width in filler and progress bar
auto filler = m_viewSelectionButtonsLayout->itemAt(m_viewSelectionButtons->buttons().size());
if (filler != nullptr)
if (auto fillerBtn = dynamic_cast<QToolButton*>(filler->widget()); fillerBtn != nullptr)
fillerBtn->setFixedWidth(buttonExtent);
m_progressBar->setFixedWidth(buttonExtent);
} }
QToolButton* MainWindow::createViewSelectionButton() const { QToolButton* MainWindow::createViewSelectionButton() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment