Skip to content

Commit

Permalink
Merge pull request #11 from bzeller/master
Browse files Browse the repository at this point in the history
[orientation] enable orientation handling in fingerterm
  • Loading branch information
sledges committed Oct 10, 2013
2 parents 1e5b30a + cac6013 commit f49ca3e
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 f49ca3e

Please sign in to comment.