summaryrefslogtreecommitdiff
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2015-06-08 09:22:24 -0400
committerBrad King <brad.king@kitware.com>2015-06-08 09:59:11 -0400
commitd9b974b18ebad4bd84f40e7cebe01725f081bd5e (patch)
treedfe477fa566609a175423cdbea3e838bc6b6e8ec /Source/QtDialog
parente462ef74e55f2c4c1169797d4916f8076a927485 (diff)
downloadcmake-d9b974b18ebad4bd84f40e7cebe01725f081bd5e.tar.gz
cmake-gui: Make command-line install help text selectable
This will allow users to cut-n-paste the instructions over to a command prompt.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 426fa12173..bc783a33b7 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -445,6 +445,7 @@ void CMakeSetupDialog::doInstallForCommandLine()
l->addWidget(lab);
lab->setText(msg);
lab->setWordWrap(false);
+ lab->setTextInteractionFlags(Qt::TextSelectableByMouse);
QDialogButtonBox* btns = new QDialogButtonBox(QDialogButtonBox::Ok,
Qt::Horizontal, &dialog);
QObject::connect(btns, SIGNAL(accepted()), &dialog, SLOT(accept()));