forked from qt-creator/qt-creator
Add a file properties dialog
Task-number: QTCREATORBUG-19588 Change-Id: I75599459beb7e23812ba48670ae968585faefda9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
8e83f6f0e7
commit
9467ed42c3
@@ -31,6 +31,7 @@
|
||||
#include "coreconstants.h"
|
||||
|
||||
#include <coreplugin/diffservice.h>
|
||||
#include <coreplugin/dialogs/filepropertiesdialog.h>
|
||||
#include <coreplugin/dialogs/readonlyfilesdialog.h>
|
||||
#include <coreplugin/dialogs/saveitemsdialog.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
@@ -948,6 +949,12 @@ bool DocumentManager::saveModifiedDocument(IDocument *document, const QString &m
|
||||
alwaysSaveMessage, alwaysSave, failedToClose);
|
||||
}
|
||||
|
||||
void DocumentManager::showFilePropertiesDialog(const FileName &filePath)
|
||||
{
|
||||
FilePropertiesDialog properties(filePath);
|
||||
properties.exec();
|
||||
}
|
||||
|
||||
/*!
|
||||
Asks the user for a set of file names to be opened. The \a filters
|
||||
and \a selectedFilter arguments are interpreted like in
|
||||
|
Reference in New Issue
Block a user