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:
David Schulz
2020-03-24 09:44:38 +01:00
parent 6989c9bbea
commit 398930d3cf
5 changed files with 25 additions and 14 deletions

View File

@@ -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();