cmake-gui: Make command-line install help text selectable

This will allow users to cut-n-paste the instructions over to a command
prompt.
This commit is contained in:
Clinton Stimpson 2015-06-08 09:22:24 -04:00 committed by Brad King
parent e462ef74e5
commit d9b974b18e
1 changed files with 1 additions and 0 deletions

View File

@ -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()));