mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 10:04:13 +02:00
Migrating more SLOT() macros.
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user