From dfe2f553fbf298b8b680207325a1302f566c8eb1 Mon Sep 17 00:00:00 2001 From: Ionutz Borcoman Date: Sun, 6 Mar 2011 21:05:32 +0200 Subject: [PATCH] force portrait mode. remove focus from the buttons. --- src/main.cpp | 2 +- src/mainwindow.ui | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 06cf469..96abba8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,7 @@ int main(int argc, char *argv[]) app.setApplicationName(ORGANIZATION_NAME); MainWindow mainWindow; - mainWindow.setOrientation(MainWindow::ScreenOrientationAuto); + mainWindow.setOrientation(MainWindow::ScreenOrientationLockPortrait); mainWindow.showExpanded(); return app.exec(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index af73bee..7e4c4de 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -21,6 +21,9 @@ + + Qt::NoFocus + next subtitle @@ -41,6 +44,9 @@ + + Qt::NoFocus + next language @@ -91,6 +97,9 @@ + + Qt::NoFocus + volume up @@ -111,6 +120,9 @@ + + Qt::NoFocus + volume down @@ -131,6 +143,9 @@ + + Qt::NoFocus + mute @@ -187,6 +202,9 @@ + + Qt::NoFocus + up @@ -224,6 +242,9 @@ + + Qt::NoFocus + left @@ -244,6 +265,9 @@ + + Qt::NoFocus + pause @@ -264,6 +288,9 @@ + + Qt::NoFocus + right @@ -301,6 +328,9 @@ + + Qt::NoFocus + down @@ -355,6 +385,9 @@ + + Qt::NoFocus + stop @@ -388,6 +421,9 @@ + + Qt::NoFocus + select -- 1.7.9.5