summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeWidgets.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-09-25 17:41:04 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-09-27 16:06:54 (GMT)
commitab8f6fdd8c9da74c22cc9f7cf3011c58f9bebd39 (patch)
treef4f4a60cb3b0fa6fdd6d1cc060ccfac20f61e95f /Source/QtDialog/QCMakeWidgets.cxx
parent7a4d84d8d20ea58cd5cb297b9e5decd58a80b709 (diff)
downloadCMake-ab8f6fdd8c9da74c22cc9f7cf3011c58f9bebd39.zip
CMake-ab8f6fdd8c9da74c22cc9f7cf3011c58f9bebd39.tar.gz
CMake-ab8f6fdd8c9da74c22cc9f7cf3011c58f9bebd39.tar.bz2
CMake GUI: Modernize signal-slot connections
Qt5 supports passing function pointers to QObject::connect(), and prefers this over SIGNAL() and SLOT(). Modernize the connections, stop using a deprecated signal from QComboBox, and modernize a few QKeySequence's.
Diffstat (limited to 'Source/QtDialog/QCMakeWidgets.cxx')
-rw-r--r--Source/QtDialog/QCMakeWidgets.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeWidgets.cxx b/Source/QtDialog/QCMakeWidgets.cxx
index d16ea58..1fc839f 100644
--- a/Source/QtDialog/QCMakeWidgets.cxx
+++ b/Source/QtDialog/QCMakeWidgets.cxx
@@ -17,8 +17,8 @@ QCMakeFileEditor::QCMakeFileEditor(QWidget* p, QString var)
this->ToolButton = new QToolButton(this);
this->ToolButton->setText("...");
this->ToolButton->setCursor(QCursor(Qt::ArrowCursor));
- QObject::connect(this->ToolButton, SIGNAL(clicked(bool)), this,
- SLOT(chooseFile()));
+ QObject::connect(this->ToolButton, &QToolButton::clicked, this,
+ &QCMakeFileEditor::chooseFile);
}
QCMakeFilePathEditor::QCMakeFilePathEditor(QWidget* p, const QString& var)