mirror of https://github.com/vitalif/openscad
Removed duplicate fire of QComboBox signals
parent
dd69750d48
commit
fb2e2fa08d
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue