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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user