Bug 584783 - Re-insert runtime switch between MWindow and QGraphicsView. r=doug.turner. qt-only

This commit is contained in:
Steffen Imhof 2010-08-10 14:24:13 -07:00
parent 5a7f604b5a
commit 76ee88c5a6

View File

@ -2082,7 +2082,9 @@ nsWindow::createQWidget(MozQWidget *parent, nsWidgetInitData *aInitData)
if (mIsTopLevel) {
QGraphicsView* newView = nsnull;
#ifdef MOZ_ENABLE_MEEGOTOUCH
newView = new MozMGraphicsView(widget);
if (XRE_GetProcessType() == GeckoProcessType_Default) {
newView = new MozMGraphicsView(widget);
} else
#else
newView = new MozQGraphicsView(widget);
#endif