From 42d8d0385542f2fa460054db296f021fc8a1187d Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 8 Feb 2016 22:28:50 +0000 Subject: [PATCH] ChartBar size nit .. when preferences change. We really need to fix the sidebar items, scopebar and toolbar to do the same. --- src/ChartBar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ChartBar.cpp b/src/ChartBar.cpp index 0096e387fc..48e65a9be5 100644 --- a/src/ChartBar.cpp +++ b/src/ChartBar.cpp @@ -110,9 +110,11 @@ ChartBar::ChartBar(Context *context) : QWidget(context->mainWindow), context(con #ifdef Q_OS_MAC setFixedHeight(fs.height()+7); scrollArea->setFixedHeight(fs.height()+7); + buttonBar->setFixedHeight(fs.height()+7); #else setFixedHeight(fs.height()+4); scrollArea->setFixedHeight(fs.height()+4); + buttonBar->setFixedHeight(fs.height()+4); #endif signalMapper = new QSignalMapper(this); // maps each option @@ -141,6 +143,7 @@ ChartBar::configChanged(qint32) QFontMetrics fs(buttonFont); setFixedHeight(fs.height()+4); scrollArea->setFixedHeight(fs.height()+4); + buttonBar->setFixedHeight(fs.height()+4); foreach(GcScopeButton *b, buttons) { int width = fs.width(b->text); b->setFont(buttonFont);