summaryrefslogtreecommitdiffstats
path: root/demos/mobile/guitartuner/src/guitartuner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/mobile/guitartuner/src/guitartuner.cpp')
-rw-r--r--demos/mobile/guitartuner/src/guitartuner.cpp38
1 files changed, 2 insertions, 36 deletions
diff --git a/demos/mobile/guitartuner/src/guitartuner.cpp b/demos/mobile/guitartuner/src/guitartuner.cpp
index 43222f2d..35c553b3 100644
--- a/demos/mobile/guitartuner/src/guitartuner.cpp
+++ b/demos/mobile/guitartuner/src/guitartuner.cpp
@@ -320,40 +320,6 @@ void GuitarTuner::setMaxVolumeLevel(qreal percent)
*/
void GuitarTuner::setOrientation(Orientation orientation)
{
-#ifdef Q_OS_SYMBIAN
- if (orientation != Auto) {
-#if defined(ORIENTATIONLOCK)
- const CAknAppUiBase::TAppUiOrientation uiOrientation =
- (orientation == LockPortrait)
- ? CAknAppUi::EAppUiOrientationPortrait
- : CAknAppUi::EAppUiOrientationLandscape;
- CAknAppUi* appUi = dynamic_cast<CAknAppUi*>
- (CEikonEnv::Static()->AppUi());
- TRAPD(error,
- if (appUi)
- appUi->SetOrientationL(uiOrientation);
- );
-#else // ORIENTATIONLOCK
- qWarning(QString("'ORIENTATIONLOCK' needs to be defined on")
- +QString(" Symbian when locking the orientation."));
-#endif // ORIENTATIONLOCK
- }
-#elif defined(Q_WS_MAEMO_5)
- Qt::WidgetAttribute attribute;
- switch (orientation) {
- case LockPortrait:
- attribute = Qt::WA_Maemo5PortraitOrientation;
- break;
- case LockLandscape:
- attribute = Qt::WA_Maemo5LandscapeOrientation;
- break;
- case Auto:
- default:
- attribute = Qt::WA_Maemo5AutoOrientation;
- break;
- }
- setAttribute(attribute, true);
-#else // Q_OS_SYMBIAN
- Q_UNUSED(orientation);
-#endif // Q_OS_SYMBIAN
+ // TODO: Needs a Qt5 implmentation
+ Q_UNUSED(orientation)
}