mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-15 19:14:12 +02:00
Merge pull request #698 from arummler/master-modernize-signal-slot
Migrate string based signal/slot to method pointer
This commit is contained in:
@@ -226,7 +226,7 @@ void ElementPropertiesEditorWidget::setUpInterface()
|
||||
ui->m_tree->setItemDelegate(new EditorDelegate(this));
|
||||
|
||||
// NEU: Checkbox mit der Zahlenbox verbinden (Aktivieren/Deaktivieren)
|
||||
connect(ui->max_slaves_checkbox, SIGNAL(toggled(bool)), ui->max_slaves_spinbox, SLOT(setEnabled(bool)));
|
||||
connect(ui->max_slaves_checkbox, &QCheckBox::toggled, ui->max_slaves_spinbox, &QWidget::setEnabled);
|
||||
connect(ui->max_slaves_spinbox, QOverload<int>::of(&QSpinBox::valueChanged), [this](int) {
|
||||
if (ui->m_slave_groups_checkbox->isChecked()) {
|
||||
populateSlaveGroupsTable();
|
||||
|
||||
@@ -848,7 +848,7 @@ bool QETElementEditor::event(QEvent *event)
|
||||
{
|
||||
if (m_first_activation && event->type() == QEvent::WindowActivate) {
|
||||
m_first_activation = false;
|
||||
QTimer::singleShot(250, m_view, SLOT(zoomFit()));
|
||||
QTimer::singleShot(250, m_view, &ElementView::zoomFit);
|
||||
}
|
||||
|
||||
return QMainWindow::event(event);
|
||||
|
||||
Reference in New Issue
Block a user