Commit cac6013f authored by Benjamin Zeller's avatar Benjamin Zeller

[orientation] enable orientation handling in fingerterm

parent 1e5b30a2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment