mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-28 18:32:48 +00:00
NOISSUE Connect signal in code instead of ui file
This commit is contained in:
parent
d6dabfa67d
commit
72e62058c0
@ -72,6 +72,8 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance
|
|||||||
ui->createScriptCheckBox->setChecked(true);
|
ui->createScriptCheckBox->setChecked(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
connect(ui->joinWorldCheckBox, &QCheckBox::toggled, this, &CreateShortcutDialog::updateDialogState);
|
||||||
|
|
||||||
updateDialogState();
|
updateDialogState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -454,22 +454,6 @@
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
<connection>
|
|
||||||
<sender>joinWorldCheckBox</sender>
|
|
||||||
<signal>toggled(bool)</signal>
|
|
||||||
<receiver>CreateShortcutDialog</receiver>
|
|
||||||
<slot>updateDialogState()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>140</x>
|
|
||||||
<y>59</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>397</x>
|
|
||||||
<y>164</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
</connections>
|
</connections>
|
||||||
<slots>
|
<slots>
|
||||||
<slot>updateDialogState()</slot>
|
<slot>updateDialogState()</slot>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user