diff --git a/sources/autoNum/ui/autonumberingdockwidget.h b/sources/autoNum/ui/autonumberingdockwidget.h index 5e86610e1..8472439bf 100644 --- a/sources/autoNum/ui/autonumberingdockwidget.h +++ b/sources/autoNum/ui/autonumberingdockwidget.h @@ -72,7 +72,6 @@ class AutoNumberingDockWidget : public QDockWidget void on_m_folio_increase_sb_valueChanged(int); signals: - void folioAutoNumChanged(QString); private: enum class AutoNumCategory { Conductor, Element, Folio }; diff --git a/sources/editor/ui/qetelementeditor.cpp b/sources/editor/ui/qetelementeditor.cpp index 9a4eb2ffb..3febab0d9 100644 --- a/sources/editor/ui/qetelementeditor.cpp +++ b/sources/editor/ui/qetelementeditor.cpp @@ -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); diff --git a/sources/genericpanel.cpp b/sources/genericpanel.cpp index dbb856b75..71248faa1 100644 --- a/sources/genericpanel.cpp +++ b/sources/genericpanel.cpp @@ -1033,7 +1033,7 @@ bool GenericPanel::event(QEvent *event) { if (first_activation_) { if (event -> type() == QEvent::WindowActivate || event -> type() == QEvent::Show) { - QTimer::singleShot(250, this, SLOT(emitFirstActivated())); + QTimer::singleShot(250, this, &GenericPanel::emitFirstActivated); first_activation_ = false; } } diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index 5f98fe11f..ac5656af8 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -983,7 +983,7 @@ bool QETDiagramEditor::event(QEvent *e) if (m_first_show && e->type() == QEvent::WindowActivate) { 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)); } diff --git a/sources/titleblock/qettemplateeditor.cpp b/sources/titleblock/qettemplateeditor.cpp index 8b83c4bb3..9dd025132 100644 --- a/sources/titleblock/qettemplateeditor.cpp +++ b/sources/titleblock/qettemplateeditor.cpp @@ -142,7 +142,7 @@ void QETTitleBlockTemplateEditor::firstActivation(QEvent *event) Q_UNUSED(event) if (duplicate_ && !opened_from_file_ && location_.parentCollection()) { // this editor is supposed to duplicate its current location - QTimer::singleShot(250, this, SLOT(duplicateCurrentLocation())); + QTimer::singleShot(250, this, &QETTitleBlockTemplateEditor::duplicateCurrentLocation); } } diff --git a/sources/titleblock/templateview.cpp b/sources/titleblock/templateview.cpp index c1719b52d..644f3239b 100644 --- a/sources/titleblock/templateview.cpp +++ b/sources/titleblock/templateview.cpp @@ -863,7 +863,7 @@ void TitleBlockTemplateView::fillWithEmptyCells() */ bool TitleBlockTemplateView::event(QEvent *event) { if (first_activation_ && event -> type() == QEvent::WindowActivate) { - QTimer::singleShot(250, this, SLOT(zoomFit())); + QTimer::singleShot(250, this, &TitleBlockTemplateView::zoomFit); first_activation_ = false; } return(QGraphicsView::event(event)); diff --git a/sources/ui/elementinfowidget.cpp b/sources/ui/elementinfowidget.cpp index a566643c5..0b8a41111 100644 --- a/sources/ui/elementinfowidget.cpp +++ b/sources/ui/elementinfowidget.cpp @@ -148,7 +148,7 @@ bool ElementInfoWidget::event(QEvent *event) { 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; } } diff --git a/sources/ui/linksingleelementwidget.cpp b/sources/ui/linksingleelementwidget.cpp index 08c65cc55..026ca251d 100644 --- a/sources/ui/linksingleelementwidget.cpp +++ b/sources/ui/linksingleelementwidget.cpp @@ -528,7 +528,7 @@ void LinkSingleElementWidget::diagramWasRemovedFromProject() // contains the master element linked to the edited element // we must wait for this elements to be unlinked, // 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() diff --git a/sources/ui/masterpropertieswidget.cpp b/sources/ui/masterpropertieswidget.cpp index 0457fadb6..2924f0549 100644 --- a/sources/ui/masterpropertieswidget.cpp +++ b/sources/ui/masterpropertieswidget.cpp @@ -427,7 +427,7 @@ void MasterPropertiesWidget::diagramWasdeletedFromProject() // contains slave element linked to the edited element // we must wait for this elements be unlinked, // or else the linked list provides deleted elements. - QTimer::singleShot(10, this, SLOT(updateUi())); + QTimer::singleShot(10, this, &MasterPropertiesWidget::updateUi); } /**