From d8c6efaadaaee31f8b6fa0f9b205d475ebe62122 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sat, 2 Jan 2021 21:05:05 +0100 Subject: [PATCH] Fixed signal connection of perspective combobox --- demo/MainWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index 4223926..63eaa45 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -617,8 +617,13 @@ CMainWindow::CMainWindow(QWidget *parent) : // Now create the dock manager and its content 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&))); + #else + connect(d->PerspectiveComboBox, SIGNAL(textActivated(const QString&)), + d->DockManager, SLOT(openPerspective(const QString&))); + #endif d->createContent(); // Default window geometry - center on screen