Honour Font preferences in Side/Scope/Chart bar

This commit is contained in:
Mark Liversedge
2014-03-09 08:13:57 +00:00
parent 4b387d6bd6
commit be064c2e9e
3 changed files with 1 additions and 14 deletions

View File

@@ -38,12 +38,6 @@ ChartBar::ChartBar(Context *context) : QWidget(context->mainWindow), context(con
vlayout->addLayout(layout);
vlayout->addStretch();
#ifdef Q_OS_MAC
buttonFont.setFamily("Lucida Grande");
#else
buttonFont.setFamily("Helvetica");
#endif
buttonFont.setPointSize(10);
buttonFont.setWeight(QFont::Black);

View File

@@ -36,11 +36,7 @@ GcScopeBar::GcScopeBar(Context *context) : QWidget(context->mainWindow), context
searchLabel->setFixedHeight(20);
searchLabel->setHighlighted(true);
QFont font;
#ifdef Q_OS_MAC
font.setFamily("Lucida Grande");
#else
font.setFamily("Helvetica");
#endif
font.setPointSize(10);
font.setWeight(QFont::Black);
searchLabel->setFont(font);
@@ -304,7 +300,6 @@ GcScopeButton::GcScopeButton(QWidget *parent) : QWidget(parent)
setFixedWidth(60);
red = highlighted = checked = false;
QFont font;
font.setFamily("Helvetica");
font.setPointSize(10);
font.setWeight(QFont::Black);
setFont(font);

View File

@@ -298,11 +298,9 @@ GcSplitterHandle::init(QString title, Qt::Orientation orientation,
#ifdef Q_OS_MAC
titleLabel->setFixedHeight(16);
titleLabel->setYOff(1);
font.setFamily("Lucida Grande");
font.setPointSize(11);
#else
titleLabel->setYOff(1);
font.setFamily("Helvetica");
font.setPointSize(10);
#endif
font.setWeight(QFont::Black);