mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-12 01:09:47 -06:00
QtDialog: add missing emit keywords
This commit is contained in:
@@ -130,7 +130,7 @@ bool StartCompilerSetup::crossCompilerSetup() const
|
||||
void StartCompilerSetup::onSelectionChanged(bool on)
|
||||
{
|
||||
if (on) {
|
||||
selectionChanged();
|
||||
emit selectionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,11 +54,11 @@ void QCMakeFilePathEditor::chooseFile()
|
||||
title = tr("Select File for %1");
|
||||
title = title.arg(this->Variable);
|
||||
}
|
||||
this->fileDialogExists(true);
|
||||
emit this->fileDialogExists(true);
|
||||
path =
|
||||
QFileDialog::getOpenFileName(this, title, info.absolutePath(), QString(),
|
||||
CM_NULLPTR, QFileDialog::DontResolveSymlinks);
|
||||
this->fileDialogExists(false);
|
||||
emit this->fileDialogExists(false);
|
||||
|
||||
if (!path.isEmpty()) {
|
||||
this->setText(QDir::fromNativeSeparators(path));
|
||||
@@ -76,11 +76,11 @@ void QCMakePathEditor::chooseFile()
|
||||
title = tr("Select Path for %1");
|
||||
title = title.arg(this->Variable);
|
||||
}
|
||||
this->fileDialogExists(true);
|
||||
emit this->fileDialogExists(true);
|
||||
path = QFileDialog::getExistingDirectory(this, title, this->text(),
|
||||
QFileDialog::ShowDirsOnly |
|
||||
QFileDialog::DontResolveSymlinks);
|
||||
this->fileDialogExists(false);
|
||||
emit this->fileDialogExists(false);
|
||||
if (!path.isEmpty()) {
|
||||
this->setText(QDir::fromNativeSeparators(path));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user