Gui: [skip ci] for quick search don't change font family and size but set to bold only because on some systems an almost unreadable font might be taken

This commit is contained in:
wmayer
2020-03-16 17:29:29 +01:00
parent a7b4b11d9d
commit 8ab26fdf2b
2 changed files with 3 additions and 1 deletions

View File

@@ -122,6 +122,8 @@ DlgParameterImp::DlgParameterImp( QWidget* parent, Qt::WindowFlags fl )
// store the current font properties because
// we don't know what style sheet the user uses for FC
defaultFont = paramGroup->font();
boldFont = defaultFont;
boldFont.setBold(true);
defaultColor = paramGroup->topLevelItem(0)->foreground(0);
// set a placeholder text to inform the user

View File

@@ -78,7 +78,7 @@ protected:
private:
QFont defaultFont;
QBrush defaultColor;
const QFont boldFont = QFont(QString(), -1, QFont::Bold);
QFont boldFont;
QList<QTreeWidgetItem*> foundList;
};