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:
@@ -71,6 +71,8 @@
|
||||
#include <QMessageBox>
|
||||
#include <utils/QtConcurrentTools>
|
||||
|
||||
using namespace Core;
|
||||
|
||||
// Static cached data in struct QmakeNodeStaticData providing information and icons
|
||||
// for file types and the project. Do some magic via qAddPostRoutine()
|
||||
// to make sure the icons do not outlive QApplication, triggering warnings on X11.
|
||||
@@ -1072,9 +1074,9 @@ ProjectExplorer::FolderNode::AddNewInformation QmakePriFileNode::addNewInformati
|
||||
|
||||
bool QmakePriFileNode::priFileWritable(const QString &path)
|
||||
{
|
||||
Core::Internal::ReadOnlyFilesDialog roDialog(path, Core::ICore::mainWindow());
|
||||
ReadOnlyFilesDialog roDialog(path, ICore::mainWindow());
|
||||
roDialog.setShowFailWarning(true);
|
||||
return roDialog.exec() != Core::Internal::ReadOnlyFilesDialog::RO_Cancel;
|
||||
return roDialog.exec() != ReadOnlyFilesDialog::RO_Cancel;
|
||||
}
|
||||
|
||||
bool QmakePriFileNode::saveModifiedEditors()
|
||||
|
||||
Reference in New Issue
Block a user