Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[orientation] enable orientation handling in fingerterm
  • Loading branch information
bzeller committed Oct 10, 2013
1 parent 1e5b30a commit cac6013
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.cpp
Expand Up @@ -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>("TextRender",1,0,"TextRender");
MainWindow view;

Expand Down

0 comments on commit cac6013

Please sign in to comment.