GUI: same font as log in CommandLineEdit
This commit is contained in:
parent
6cce63f81d
commit
1ac7bd2faf
|
@ -27,6 +27,9 @@ CommandLineEdit::CommandLineEdit(QWidget* parent)
|
|||
connect(Bridge::getBridge(), SIGNAL(registerScriptLang(SCRIPTTYPEINFO*)), this, SLOT(registerScriptType(SCRIPTTYPEINFO*)));
|
||||
connect(Bridge::getBridge(), SIGNAL(unregisterScriptLang(int)), this, SLOT(unregisterScriptType(int)));
|
||||
connect(mCmdScriptType, SIGNAL(currentIndexChanged(int)), this, SLOT(scriptTypeChanged(int)));
|
||||
connect(Config(), SIGNAL(fontsUpdated()), this, SLOT(fontsUpdated()));
|
||||
|
||||
fontsUpdated();
|
||||
}
|
||||
|
||||
CommandLineEdit::~CommandLineEdit()
|
||||
|
@ -256,3 +259,8 @@ void CommandLineEdit::scriptTypeChanged(int index)
|
|||
// Force reset autocompletion (blank string)
|
||||
emit textEdited("");
|
||||
}
|
||||
|
||||
void CommandLineEdit::fontsUpdated()
|
||||
{
|
||||
setFont(ConfigFont("Log"));
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public slots:
|
|||
void registerScriptType(SCRIPTTYPEINFO* info);
|
||||
void unregisterScriptType(int id);
|
||||
void scriptTypeChanged(int index);
|
||||
void fontsUpdated();
|
||||
|
||||
private:
|
||||
QComboBox* mCmdScriptType;
|
||||
|
|
Loading…
Reference in New Issue