forked from qt-creator/qt-creator
Use new mime database
Change-Id: I4305872b6b11ef3e8a364280ffa5209a5a793600 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include "genericproject.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/mimedatabase.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
|
||||
@@ -47,6 +46,8 @@
|
||||
#include <projectexplorer/projecttree.h>
|
||||
#include <projectexplorer/selectablefilesmodel.h>
|
||||
|
||||
#include <utils/mimetypes/mimedatabase.h>
|
||||
|
||||
#include <QtPlugin>
|
||||
#include <QDebug>
|
||||
|
||||
@@ -62,10 +63,8 @@ GenericProjectPlugin::GenericProjectPlugin()
|
||||
|
||||
bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage)
|
||||
{
|
||||
const QLatin1String mimetypesXml(":genericproject/GenericProjectManager.mimetypes.xml");
|
||||
|
||||
if (!MimeDatabase::addMimeTypes(mimetypesXml, errorMessage))
|
||||
return false;
|
||||
Q_UNUSED(errorMessage)
|
||||
Utils::MimeDatabase::addMimeTypes(QLatin1String(":genericproject/GenericProjectManager.mimetypes.xml"));
|
||||
|
||||
addAutoReleasedObject(new Manager);
|
||||
addAutoReleasedObject(new ProjectFilesFactory);
|
||||
|
||||
Reference in New Issue
Block a user