Removed duplicate fire of QComboBox signals

master
Marius Kintel 2015-02-25 11:31:30 -05:00
parent dd69750d48
commit fb2e2fa08d
2 changed files with 4 additions and 10 deletions

View File

@ -149,12 +149,6 @@ void Preferences::init() {
}
}
connect(this->fontSize, SIGNAL(currentIndexChanged(const QString&)),
this, SLOT(on_fontSize_editTextChanged(const QString &)));
connect(this->editorType, SIGNAL(currentIndexChanged(const QString&)),
this, SLOT(on_editorType_editTextChanged(const QString &)));
// reset GUI fontsize if fontSize->addItem emitted signals that changed it.
this->fontSize->setEditText( QString("%1").arg( savedsize ) );
@ -340,7 +334,7 @@ void Preferences::on_fontChooser_activated(const QString &family)
emit fontChanged(family, getValue("editor/fontsize").toUInt());
}
void Preferences::on_fontSize_editTextChanged(const QString &size)
void Preferences::on_fontSize_currentIndexChanged(const QString &size)
{
uint intsize = size.toUInt();
QSettings settings;
@ -348,7 +342,7 @@ void Preferences::on_fontSize_editTextChanged(const QString &size)
emit fontChanged(getValue("editor/fontfamily").toString(), intsize);
}
void Preferences::on_editorType_editTextChanged(const QString &type)
void Preferences::on_editorType_currentIndexChanged(const QString &type)
{
QSettings settings;
settings.setValue("editor/editortype", type);

View File

@ -27,7 +27,7 @@ public slots:
void featuresCheckBoxToggled(bool);
void on_colorSchemeChooser_itemSelectionChanged();
void on_fontChooser_activated(const QString &);
void on_fontSize_editTextChanged(const QString &);
void on_fontSize_currentIndexChanged(const QString &);
void on_syntaxHighlight_activated(const QString &);
void on_openCSGWarningBox_toggled(bool);
void on_enableOpenCSGBox_toggled(bool);
@ -44,7 +44,7 @@ public slots:
void on_undockCheckBox_toggled(bool);
void on_checkNowButton_clicked();
void on_launcherBox_toggled(bool);
void on_editorType_editTextChanged(const QString &);
void on_editorType_currentIndexChanged(const QString &);
void on_checkBoxShowWarningsIn3dView_toggled(bool);
//