forked from qt-creator/qt-creator
Core: Reorganize ReadOnlyFilesDialog
Move exported class out of namespace Internal, but expose only a minimal interface. Use Qt 5 connections, adjust callers and surrounding code. Change-Id: I52b4156d78cd1ec42ec6c94994775ce74f24ebdc Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -376,9 +376,9 @@ QStringList BaseFileFind::replaceAll(const QString &text,
|
||||
|
||||
// Query the user for permissions
|
||||
if (!roFiles.isEmpty()) {
|
||||
Core::Internal::ReadOnlyFilesDialog roDialog(roFiles.toList(), ICore::mainWindow());
|
||||
ReadOnlyFilesDialog roDialog(roFiles.toList(), ICore::mainWindow());
|
||||
roDialog.setShowFailWarning(true, tr("Aborting replace."));
|
||||
if (roDialog.exec() == Core::Internal::ReadOnlyFilesDialog::RO_Cancel)
|
||||
if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel)
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user