Enable QML Debugger

REVIEW: 112127
wilder-5.14
David Edmundson 13 years ago
parent 2f93bbb124
commit b6669f7d6c
  1. 7
      main.cpp

@ -25,6 +25,7 @@
#include "desktopcorona.h"
#include "shellpluginloader.h"
#include <QtQml/QQmlDebuggingEnabler>
static const char description[] = "Plasma Shell";
static const char version[] = "2.0";
@ -43,6 +44,12 @@ int main(int argc, char** argv)
ki18n("Plasma Shell"),
version);
//enable the QML debugger only if -qmljsdebugger is passed as a command line arg
//this must be called before the QApplication constructor
if (KCmdLineArgs::parsedArgs("qt")->isSet("qmljsdebugger")) {
QQmlDebuggingEnabler enabler;
}
QApplication app(argc, argv);
Plasma::PluginLoader::setPluginLoader(new ShellPluginLoader);

Loading…
Cancel
Save