Restore attaching qml debugger

This commit is contained in:
David Edmundson 2014-01-03 19:38:55 +01:00
parent 0bf60ad1b4
commit 6b02b02dcc

View File

@ -39,6 +39,8 @@ void noMessageOutput(QtMsgType type, const char *msg)
}
int main(int argc, char** argv)
{
QQmlDebuggingEnabler debugEnabler;
QApplication app(argc, argv);
app.setApplicationName("plasma_shell");
app.setOrganizationDomain("kde.org");
@ -71,12 +73,6 @@ int main(int argc, char** argv)
parser.process(app);
//enable the QML debugger only if --qmljsdebugger (or -d) is passed as a command line arg
//this must be called before the QApplication constructor
if (parser.isSet(dbg)) {
QQmlDebuggingEnabler enabler;
}
if (parser.isSet(shutup)) {
qInstallMsgHandler(noMessageOutput);
}