forked from qt-creator/qt-creator
IDocument: Make mimeType a value member
Change-Id: I2e90ccf0a45ae8d00bcd00ec77fe0d9776f2f119 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -142,6 +142,14 @@ void IDocument::setTemporary(bool temporary)
|
||||
m_temporary = temporary;
|
||||
}
|
||||
|
||||
void IDocument::setMimeType(const QString &mimeType)
|
||||
{
|
||||
if (m_mimeType != mimeType) {
|
||||
m_mimeType = mimeType;
|
||||
emit mimeTypeChanged();
|
||||
}
|
||||
}
|
||||
|
||||
bool IDocument::autoSave(QString *errorString, const QString &fileName)
|
||||
{
|
||||
if (!save(errorString, fileName, true))
|
||||
|
||||
Reference in New Issue
Block a user