summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/AddCacheEntry.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/AddCacheEntry.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/AddCacheEntry.cxx')
-rw-r--r--Source/QtDialog/AddCacheEntry.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/QtDialog/AddCacheEntry.cxx b/Source/QtDialog/AddCacheEntry.cxx
index f5e0777..1075895 100644
--- a/Source/QtDialog/AddCacheEntry.cxx
+++ b/Source/QtDialog/AddCacheEntry.cxx
@@ -40,8 +40,10 @@ AddCacheEntry::AddCacheEntry(QWidget* p, const QStringList& varNames,
AddCacheEntry::setTabOrder(string, this->Description);
QCompleter* completer = new QCompleter(this->VarNames, this);
this->Name->setCompleter(completer);
- connect(completer, SIGNAL(activated(const QString&)), this,
- SLOT(onCompletionActivated(const QString&)));
+ connect(
+ completer,
+ static_cast<void (QCompleter::*)(const QString&)>(&QCompleter::activated),
+ this, &AddCacheEntry::onCompletionActivated);
}
QString AddCacheEntry::name() const