forked from qt-creator/qt-creator
Qbs add Qt overlay icon to qbs files
Change-Id: I9cd6ec7144dc1afce9d8193f5aa6719ed8d29af4 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -39,12 +39,14 @@
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/fileiconprovider.h>
|
||||
#include <coreplugin/mimedatabase.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <qtsupport/qtsupportconstants.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QAction>
|
||||
@@ -70,6 +72,10 @@ bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *
|
||||
|
||||
Q_UNUSED(arguments);
|
||||
|
||||
Core::FileIconProvider::instance()
|
||||
->registerIconOverlayForSuffix(QIcon(QLatin1String(QtSupport::Constants::ICON_QT_PROJECT)),
|
||||
QLatin1String("qbs"));
|
||||
|
||||
//create and register objects
|
||||
addAutoReleasedObject(m_manager);
|
||||
addAutoReleasedObject(new QbsBuildConfigurationFactory);
|
||||
|
||||
Reference in New Issue
Block a user