From f8bbddfa4e36a14f01e6cbda7cd075e6acac660f Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Thu, 20 Feb 2014 19:10:16 +0000 Subject: [PATCH] Fix spacing for non QGtkStyle styles --- gui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index aafbdc667..46de8fb90 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -525,7 +525,8 @@ MainWindow::MainWindow(QWidget *parent) } ensurePolished(); - int edgeWidth=qMax(prevTrackButton->width()*4, (menuButton->width()*2)+volumeSliderSpacer->geometry().width()+volumeSlider->width()); + int edgeWidth=qMax(prevTrackButton->width()*4, menuButton->sizeHint().width()+songInfoButton->width()+ + volumeSliderSpacer->sizeHint().width()+volumeSlider->width()); toolbarSpacerA->setFixedSize(edgeWidth, 0); toolbarSpacerB->setFixedSize(edgeWidth, 0);