From da8f17cce252a900150c81d4e2a5f2f87e8f3dc9 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Mon, 5 Sep 2022 17:04:41 +0800 Subject: [PATCH] Fix perspective for central widget demo --- examples/centralwidget/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/centralwidget/mainwindow.cpp b/examples/centralwidget/mainwindow.cpp index fe1b347..3ad0056 100644 --- a/examples/centralwidget/mainwindow.cpp +++ b/examples/centralwidget/mainwindow.cpp @@ -96,7 +96,7 @@ void CMainWindow::createPerspectiveUi() PerspectiveComboBox = new QComboBox(this); PerspectiveComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents); PerspectiveComboBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); - connect(PerspectiveComboBox, SIGNAL(activated(const QString&)), + connect(PerspectiveComboBox, SIGNAL(currentTextChanged(const QString&)), DockManager, SLOT(openPerspective(const QString&))); PerspectiveListAction->setDefaultWidget(PerspectiveComboBox); ui->toolBar->addSeparator();