From ca1d3fcd38b51ac094961fd56b6d88467a7f1fb6 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 18 Nov 2022 21:22:44 +0100 Subject: [PATCH] normalize SIGNAL(),SLOT() signatures --- demo/MainWindow.cpp | 8 ++++---- src/DockAreaTabBar.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index dd8b7f3..e6f2aa4 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -671,11 +671,11 @@ CMainWindow::CMainWindow(QWidget *parent) : d->DockManager = new CDockManager(this); #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) - connect(d->PerspectiveComboBox, SIGNAL(activated(const QString&)), - d->DockManager, SLOT(openPerspective(const QString&))); + connect(d->PerspectiveComboBox, SIGNAL(activated(QString)), + d->DockManager, SLOT(openPerspective(QString))); #else - connect(d->PerspectiveComboBox, SIGNAL(textActivated(const QString&)), - d->DockManager, SLOT(openPerspective(const QString&))); + connect(d->PerspectiveComboBox, SIGNAL(textActivated(QString)), + d->DockManager, SLOT(openPerspective(QString))); #endif d->createContent(); diff --git a/src/DockAreaTabBar.cpp b/src/DockAreaTabBar.cpp index d06313a..1b26435 100644 --- a/src/DockAreaTabBar.cpp +++ b/src/DockAreaTabBar.cpp @@ -203,7 +203,7 @@ void CDockAreaTabBar::insertTab(int Index, CDockWidgetTab* Tab) connect(Tab, SIGNAL(clicked()), this, SLOT(onTabClicked())); connect(Tab, SIGNAL(closeRequested()), this, SLOT(onTabCloseRequested())); connect(Tab, SIGNAL(closeOtherTabsRequested()), this, SLOT(onCloseOtherTabsRequested())); - connect(Tab, SIGNAL(moved(const QPoint&)), this, SLOT(onTabWidgetMoved(const QPoint&))); + connect(Tab, SIGNAL(moved(QPoint)), this, SLOT(onTabWidgetMoved(QPoint))); connect(Tab, SIGNAL(elidedChanged(bool)), this, SIGNAL(elidedChanged(bool))); Tab->installEventFilter(this); Q_EMIT tabInserted(Index);