IDocument: Make mimeType a value member

Change-Id: I2e90ccf0a45ae8d00bcd00ec77fe0d9776f2f119
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2014-06-26 02:15:34 +02:00
parent 777b9e88b2
commit 93ccf4f266
34 changed files with 29 additions and 136 deletions

View File

@@ -441,6 +441,7 @@ ResourceFileWatcher::ResourceFileWatcher(ResourceTopLevelNode *node)
: IDocument(node), m_node(node)
{
setId("ResourceNodeWatcher");
setMimeType(QLatin1String(ResourceEditor::Constants::C_RESOURCE_MIMETYPE));
setFilePath(node->path());
}
@@ -462,11 +463,6 @@ QString ResourceFileWatcher::suggestedFileName() const
return QString();
}
QString ResourceFileWatcher::mimeType() const
{
return QLatin1String(ResourceEditor::Constants::C_RESOURCE_MIMETYPE);
}
bool ResourceFileWatcher::isModified() const
{
return false;