summaryrefslogtreecommitdiffstats
path: root/hyperui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyperui/mainwindow.cpp')
-rw-r--r--hyperui/mainwindow.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/hyperui/mainwindow.cpp b/hyperui/mainwindow.cpp
index e759003..0449168 100644
--- a/hyperui/mainwindow.cpp
+++ b/hyperui/mainwindow.cpp
@@ -40,12 +40,6 @@
#include "clockwidget.h"
#include "draggablepreview.h"
-#ifdef Q_OS_SYMBIAN
-#include <eikenv.h>
-#include <coemain.h>
-#include <aknappui.h>
-#endif
-
MainWindow::MainWindow(QGraphicsItem *parent)
: QGraphicsWidget(parent),
@@ -96,12 +90,6 @@ MainWindow::MainWindow(QGraphicsItem *parent)
iconBattery->setPos(Resource::value("topbar/icon-battery-pos").toPoint());
createDummyDailyEvents();
-
-#ifdef Q_OS_SYMBIAN
- // The line below is necessary, since CAknAppUi object is only
- // available in the main loop.
- QTimer::singleShot(0, this, SLOT(lockPortraitMode()));
-#endif
}
void MainWindow::onDragModeIn()
@@ -156,18 +144,3 @@ void MainWindow::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
painter->drawPixmap(0, 0, m_background);
}
-
-/*!
- Lock the screen in portrait mode.
-
- \todo Add support to maemo portrait mode.
-*/
-#ifdef Q_OS_SYMBIAN
-void MainWindow::lockPortraitMode()
-{
- CAknAppUi *aknAppUi = dynamic_cast<CAknAppUi *>(CEikonEnv::Static()->AppUi());
-
- if (aknAppUi)
- aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
-}
-#endif