Commit 1094e477 authored by elros34's avatar elros34

Configurable orientation mask

parent 5d2464cb
......@@ -99,11 +99,15 @@ int main(int argc, char *argv[])
QScreen* sc = app.primaryScreen();
if(sc){
sc->setOrientationUpdateMask(Qt::PrimaryOrientation
| Qt::LandscapeOrientation
| Qt::PortraitOrientation
| Qt::InvertedLandscapeOrientation
| Qt::InvertedPortraitOrientation);
QFlags<Qt::ScreenOrientation> mask = Qt::PrimaryOrientation
| Qt::PortraitOrientation
| Qt::LandscapeOrientation
| Qt::InvertedPortraitOrientation
| Qt::InvertedLandscapeOrientation;
if (settings->contains("ui/orientationMask")) {
mask &= settings->value("ui/orientationMask").toInt();
}
sc->setOrientationUpdateMask(mask);
}
qmlRegisterType<TextRender>("FingerTerm", 1, 0, "TextRender");
......
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