forked from qt-creator/qt-creator
Core: Make IDocument concrete
Change-Id: I8290943614ea4a2060cf09a71fb4f957852ab705 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
5e623ddfd1
commit
a5a4f02ced
@@ -145,6 +145,14 @@ IDocument::OpenResult IDocument::open(QString *errorString, const QString &fileN
|
||||
return OpenResult::CannotHandle;
|
||||
}
|
||||
|
||||
bool IDocument::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
{
|
||||
Q_UNUSED(errorString)
|
||||
Q_UNUSED(fileName)
|
||||
Q_UNUSED(autoSave)
|
||||
return false;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Returns the current contents of the document. The base implementation returns an empty
|
||||
* QByteArray.
|
||||
@@ -180,6 +188,14 @@ IDocument::ReloadBehavior IDocument::reloadBehavior(ChangeTrigger state, ChangeT
|
||||
return BehaviorAsk;
|
||||
}
|
||||
|
||||
bool IDocument::reload(QString *errorString, ReloadFlag flag, ChangeType type)
|
||||
{
|
||||
Q_UNUSED(errorString)
|
||||
Q_UNUSED(flag)
|
||||
Q_UNUSED(type)
|
||||
return true;
|
||||
}
|
||||
|
||||
void IDocument::checkPermissions()
|
||||
{
|
||||
}
|
||||
@@ -189,6 +205,16 @@ bool IDocument::shouldAutoSave() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IDocument::isModified() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IDocument::isSaveAsAllowed() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IDocument::isFileReadOnly() const
|
||||
{
|
||||
if (filePath().isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user