forked from qt-creator/qt-creator
ProjectExplorer: Set temporary flag on scratch buffer document
Task-number: QTCREATORBUG-23509 Change-Id: Ieb3922030cb1dd4984b91ac24d0396bb19a4a711 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -36,18 +36,20 @@ class GeneratedFilePrivate;
|
||||
class CORE_EXPORT GeneratedFile
|
||||
{
|
||||
public:
|
||||
enum Attribute { // Open this file in editor
|
||||
OpenEditorAttribute = 0x01,
|
||||
// Open project
|
||||
OpenProjectAttribute = 0x02,
|
||||
/* File is generated by external scripts, do not write out,
|
||||
* see BaseFileWizard::writeFiles() */
|
||||
CustomGeneratorAttribute = 0x4,
|
||||
/* File exists and the user indicated that he wants to keep it */
|
||||
KeepExistingFileAttribute = 0x8,
|
||||
/* Force overwriting of a file without asking the user to keep it */
|
||||
ForceOverwrite = 0x10
|
||||
};
|
||||
enum Attribute {
|
||||
// Open this file in editor
|
||||
OpenEditorAttribute = 0x01,
|
||||
// Open project
|
||||
OpenProjectAttribute = 0x02,
|
||||
// File is generated by external scripts, do not write out, see BaseFileWizard::writeFiles()
|
||||
CustomGeneratorAttribute = 0x4,
|
||||
// File exists and the user indicated that he wants to keep it
|
||||
KeepExistingFileAttribute = 0x8,
|
||||
// Force overwriting of a file without asking the user to keep it
|
||||
ForceOverwrite = 0x10,
|
||||
// Mark the document temporary after opening the file
|
||||
TemporaryFile = 0x20
|
||||
};
|
||||
Q_DECLARE_FLAGS(Attributes, Attribute)
|
||||
|
||||
GeneratedFile();
|
||||
|
||||
Reference in New Issue
Block a user