summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeWidgets.cxx
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2021-01-15 16:21:07 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2021-01-15 16:21:07 (GMT)
commit0bc327a79ca4d875df6084d490c4fd7da315a33a (patch)
treee0a237a08b0f3db5573f4c667783c264d64d7485 /Source/QtDialog/QCMakeWidgets.cxx
parent6baffecab94e2378bd6f054db31baf10dafa176e (diff)
downloadCMake-0bc327a79ca4d875df6084d490c4fd7da315a33a.zip
CMake-0bc327a79ca4d875df6084d490c4fd7da315a33a.tar.gz
CMake-0bc327a79ca4d875df6084d490c4fd7da315a33a.tar.bz2
CMake GUI: Improve signal specification
Don't use subclasses to connect to QAbstractButton::clicked. This is slightly dodgy, but of more immediate importance, tweaking it will allow us to change the widget type of some QToolButton instances that should be QPushButton.
Diffstat (limited to 'Source/QtDialog/QCMakeWidgets.cxx')
-rw-r--r--Source/QtDialog/QCMakeWidgets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/QCMakeWidgets.cxx b/Source/QtDialog/QCMakeWidgets.cxx
index ca65d13..03d6ed1 100644
--- a/Source/QtDialog/QCMakeWidgets.cxx
+++ b/Source/QtDialog/QCMakeWidgets.cxx
@@ -25,7 +25,7 @@ QCMakeFileEditor::QCMakeFileEditor(QWidget* p, QString var)
this->ToolButton = new QToolButton(this);
this->ToolButton->setText("...");
this->ToolButton->setCursor(QCursor(Qt::ArrowCursor));
- QObject::connect(this->ToolButton, &QToolButton::clicked, this,
+ QObject::connect(this->ToolButton, &QAbstractButton::clicked, this,
&QCMakeFileEditor::chooseFile);
}