Migrating more SLOT() macros.

This commit is contained in:
Andre Rummler
2026-08-09 12:30:15 +02:00
parent 79cd91bd1c
commit c7ed3229d0
9 changed files with 8 additions and 9 deletions
@@ -72,7 +72,6 @@ class AutoNumberingDockWidget : public QDockWidget
void on_m_folio_increase_sb_valueChanged(int); void on_m_folio_increase_sb_valueChanged(int);
signals: signals:
void folioAutoNumChanged(QString);
private: private:
enum class AutoNumCategory { Conductor, Element, Folio }; enum class AutoNumCategory { Conductor, Element, Folio };
+1 -1
View File
@@ -848,7 +848,7 @@ bool QETElementEditor::event(QEvent *event)
{ {
if (m_first_activation && event->type() == QEvent::WindowActivate) { if (m_first_activation && event->type() == QEvent::WindowActivate) {
m_first_activation = false; m_first_activation = false;
QTimer::singleShot(250, m_view, SLOT(zoomFit())); QTimer::singleShot(250, m_view, &ElementView::zoomFit);
} }
return QMainWindow::event(event); return QMainWindow::event(event);
+1 -1
View File
@@ -1033,7 +1033,7 @@ bool GenericPanel::event(QEvent *event) {
if (first_activation_) { if (first_activation_) {
if (event -> type() == QEvent::WindowActivate if (event -> type() == QEvent::WindowActivate
|| event -> type() == QEvent::Show) { || event -> type() == QEvent::Show) {
QTimer::singleShot(250, this, SLOT(emitFirstActivated())); QTimer::singleShot(250, this, &GenericPanel::emitFirstActivated);
first_activation_ = false; first_activation_ = false;
} }
} }
+1 -1
View File
@@ -983,7 +983,7 @@ bool QETDiagramEditor::event(QEvent *e)
if (m_first_show && e->type() == QEvent::WindowActivate) if (m_first_show && e->type() == QEvent::WindowActivate)
{ {
m_first_show = false; m_first_show = false;
QTimer::singleShot(250, m_element_collection_widget, SLOT(reload())); QTimer::singleShot(250, m_element_collection_widget, &ElementsCollectionWidget::reload);
} }
return(QETMainWindow::event(e)); return(QETMainWindow::event(e));
} }
+1 -1
View File
@@ -142,7 +142,7 @@ void QETTitleBlockTemplateEditor::firstActivation(QEvent *event)
Q_UNUSED(event) Q_UNUSED(event)
if (duplicate_ && !opened_from_file_ && location_.parentCollection()) { if (duplicate_ && !opened_from_file_ && location_.parentCollection()) {
// this editor is supposed to duplicate its current location // this editor is supposed to duplicate its current location
QTimer::singleShot(250, this, SLOT(duplicateCurrentLocation())); QTimer::singleShot(250, this, &QETTitleBlockTemplateEditor::duplicateCurrentLocation);
} }
} }
+1 -1
View File
@@ -863,7 +863,7 @@ void TitleBlockTemplateView::fillWithEmptyCells()
*/ */
bool TitleBlockTemplateView::event(QEvent *event) { bool TitleBlockTemplateView::event(QEvent *event) {
if (first_activation_ && event -> type() == QEvent::WindowActivate) { if (first_activation_ && event -> type() == QEvent::WindowActivate) {
QTimer::singleShot(250, this, SLOT(zoomFit())); QTimer::singleShot(250, this, &TitleBlockTemplateView::zoomFit);
first_activation_ = false; first_activation_ = false;
} }
return(QGraphicsView::event(event)); return(QGraphicsView::event(event));
+1 -1
View File
@@ -148,7 +148,7 @@ bool ElementInfoWidget::event(QEvent *event)
{ {
if (event -> type() == QEvent::WindowActivate || event -> type() == QEvent::Show) if (event -> type() == QEvent::WindowActivate || event -> type() == QEvent::Show)
{ {
QTimer::singleShot(250, this, SLOT(firstActivated())); QTimer::singleShot(250, this, &ElementInfoWidget::firstActivated);
m_first_activation = false; m_first_activation = false;
} }
} }
+1 -1
View File
@@ -528,7 +528,7 @@ void LinkSingleElementWidget::diagramWasRemovedFromProject()
// contains the master element linked to the edited element // contains the master element linked to the edited element
// we must wait for this elements to be unlinked, // we must wait for this elements to be unlinked,
// or else the list of available master isn't up to date // or else the list of available master isn't up to date
QTimer::singleShot(10, this, SLOT(updateUi())); QTimer::singleShot(10, this, &LinkSingleElementWidget::updateUi);
} }
void LinkSingleElementWidget::showedElementWasDeleted() void LinkSingleElementWidget::showedElementWasDeleted()
+1 -1
View File
@@ -427,7 +427,7 @@ void MasterPropertiesWidget::diagramWasdeletedFromProject()
// contains slave element linked to the edited element // contains slave element linked to the edited element
// we must wait for this elements be unlinked, // we must wait for this elements be unlinked,
// or else the linked list provides deleted elements. // or else the linked list provides deleted elements.
QTimer::singleShot(10, this, SLOT(updateUi())); QTimer::singleShot(10, this, &MasterPropertiesWidget::updateUi);
} }
/** /**