Skip to content

Commit

Permalink
ChartBar size nit
Browse files Browse the repository at this point in the history
.. when preferences change. We really need to fix the
   sidebar items, scopebar and toolbar to do the same.
  • Loading branch information
liversedge committed Feb 8, 2016
1 parent 6c56620 commit 42d8d03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ChartBar.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 42d8d03

Please sign in to comment.