diff --git a/examples/flatbuttonsettingseditor.cpp b/examples/flatbuttonsettingseditor.cpp index 20e6516..1e23e72 100644 --- a/examples/flatbuttonsettingseditor.cpp +++ b/examples/flatbuttonsettingseditor.cpp @@ -1,5 +1,6 @@ #include "flatbuttonsettingseditor.h" #include +#include #include FlatButtonSettingsEditor::FlatButtonSettingsEditor(QWidget *parent) @@ -310,8 +311,7 @@ void FlatButtonSettingsEditor::init() connect(ui->buttonTextLineEdit, SIGNAL(textChanged(QString)), this, SLOT(updateWidget())); connect(ui->defaultPresetPushButton, SIGNAL(pressed()), this, SLOT(applyDefaultPreset())); connect(ui->checkablePresetPushButton, SIGNAL(pressed()), this, SLOT(applyCheckablePreset())); - connect(m_button, SIGNAL(toggled(bool)), this, SLOT(setupForm())); + connect(m_button, SIGNAL(clicked(bool)), ui->checkedCheckBox, SLOT(setChecked(bool))); ui->buttonRoleComboBox->setCurrentIndex(1); } -