Commit 3d5b422a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

It seems that in qt6 connect signal/slot doesn't work correctly

parent 297094c6
......@@ -33,11 +33,12 @@ SettingsDialog::SettingsDialog(QWidget *parent)
ui.predefSizes->setCurrentIndex(0);
ui.maxSliceSize->setValue(0);
ui.maxSliceSize->setDisabled(true);
connect(ui.predefSizes, &QComboBox::activated, this, &SettingsDialog::slotSizeSelected);
}
//--------------------------------------------------------------------------------
void SettingsDialog::sizeSelected(int idx)
void SettingsDialog::slotSizeSelected(int idx)
{
if ( idx == (ui.predefSizes->count() - 1) )
ui.maxSliceSize->setEnabled(true);
......
......@@ -25,7 +25,7 @@ class SettingsDialog : public QDialog
Ui::SettingsDialog ui;
private Q_SLOTS:
void sizeSelected(int idx);
void slotSizeSelected(int idx);
};
#endif
......@@ -193,22 +193,6 @@
</widget>
<layoutdefault spacing="6" margin="11"/>
<connections>
<connection>
<sender>predefSizes</sender>
<signal>activated(int)</signal>
<receiver>SettingsDialog</receiver>
<slot>sizeSelected(int)</slot>
<hints>
<hint type="sourcelabel">
<x>41</x>
<y>114</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment