Commit 6a34fec4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_EMIT/Q_SIGNALS

parent 460b6905
......@@ -123,7 +123,7 @@ private Q_SLOTS:
*/
virtual void slotHelp();
signals:
Q_SIGNALS:
void elementChanged(int);
};
......
......@@ -80,7 +80,7 @@ public Q_SLOTS:
*/
void resetSearch();
signals:
Q_SIGNALS:
/**
* The current search has changed (ie the found elements have
* changed)
......
......@@ -32,7 +32,7 @@ void IsotopeTableSettingsCard::initialize() {
m_radioButton->setText("Next to each other");
connect(m_radioButton, &QRadioButton::toggled, this, [=](){
if (m_radioButton->isChecked())
emit checked(m_isotopeView->mode());
Q_EMIT checked(m_isotopeView->mode());
});
vLayout->addWidget(m_isotopeView);
......
......@@ -76,5 +76,5 @@ void IsotopeTableSettingsDialog::setMode(int mode)
i++;
}
m_cards[m_mode]->setChecked(true);
emit modeChanged(m_mode);
Q_EMIT modeChanged(m_mode);
}
......@@ -188,7 +188,7 @@ public Q_SLOTS:
update();
}
signals:
Q_SIGNALS:
/**
* the minimum and maximum displayed wavelength have
* changed so emit the new minimum and maximum
......
Supports Markdown
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