summaryrefslogtreecommitdiff
path: root/tizen/src/ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/mainwindow.cpp')
-rw-r--r--tizen/src/ui/mainwindow.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tizen/src/ui/mainwindow.cpp b/tizen/src/ui/mainwindow.cpp
index 06a8749cbd..0bb8446b82 100644
--- a/tizen/src/ui/mainwindow.cpp
+++ b/tizen/src/ui/mainwindow.cpp
@@ -32,6 +32,8 @@
*/
#include "mainwindow.h"
+#include "generalskinview.h"
+#include "phoneshapeskinview.h"
#include "layout/mainform.h"
#include "displayglwidget.h"
#include "displayswwidget.h"
@@ -76,7 +78,14 @@ MainWindow::MainWindow(UiInformation *uiInfo, bool useGL, QWidget *parent) :
mainScene->setBackgroundBrush(Qt::transparent);
/* view */
- mainView = new MainView(mainScene, this);
+ if (uiInfo->getMainForm()->isGeneralPurpose()) {
+ mainView = new GeneralSkinView(mainScene, this);
+ } else {
+ mainView = new PhoneShapeSkinView(mainScene, this);
+ }
+
+ uiInfo->setMainView(mainView);
+
mainView->updateLayout();
/* rotary */