Fix build for Qt 4.8

Change-Id: Ie9d49ca8b03dc035ecea9ceae62dbc97423ca2e4
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
Kai Koehne
2013-06-20 10:11:52 +02:00
parent 9b8aa933f4
commit 698958c92d

View File

@@ -19,6 +19,7 @@
#include "qmldebug/qmlprofilereventtypes.h" #include "qmldebug/qmlprofilereventtypes.h"
#include "qmlprofiler/qmlprofilermodelmanager.h" #include "qmlprofiler/qmlprofilermodelmanager.h"
#include <QCoreApplication>
#include <QDebug> #include <QDebug>
namespace QmlProfilerExtended { namespace QmlProfilerExtended {
@@ -264,9 +265,9 @@ QString labelForSGType(int t)
{ {
switch ((SceneGraphCategoryType)t) { switch ((SceneGraphCategoryType)t) {
case SceneGraphRenderThread: case SceneGraphRenderThread:
return QGuiApplication::translate("SceneGraphTimelineModel", "Renderer Thread"); return QCoreApplication::translate("SceneGraphTimelineModel", "Renderer Thread");
case SceneGraphGUIThread: case SceneGraphGUIThread:
return QGuiApplication::translate("SceneGraphTimelineModel", "GUI Thread"); return QCoreApplication::translate("SceneGraphTimelineModel", "GUI Thread");
default: return QString(); default: return QString();
} }
} }