From cac6013f3e578384d74c4297d8e310874a15be3c Mon Sep 17 00:00:00 2001 From: Benjamin Zeller Date: Thu, 10 Oct 2013 23:53:00 +0000 Subject: [PATCH] [orientation] enable orientation handling in fingerterm --- main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.cpp b/main.cpp index dca1fb5..3ef1f75 100644 --- a/main.cpp +++ b/main.cpp @@ -95,6 +95,15 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); + QScreen* sc = app.primaryScreen(); + if(sc){ + sc->setOrientationUpdateMask(Qt::PrimaryOrientation + | Qt::LandscapeOrientation + | Qt::PortraitOrientation + | Qt::InvertedLandscapeOrientation + | Qt::InvertedPortraitOrientation); + } + qmlRegisterType("TextRender",1,0,"TextRender"); MainWindow view;