@@ -18,6 +18,7 @@
1818
1919#include <QSettings>
2020#include <QFileInfo>
21+#include <QDebug>
2122
2223DeviceConfigParser::DeviceConfigParser(QObject *parent): QObject(parent)
2324{
@@ -118,5 +119,9 @@ Qt::ScreenOrientation DeviceConfigParser::stringToOrientation(const QString &ori
118119 if (orientationString == "InvertedPortrait") {
119120 return Qt::InvertedPortraitOrientation;
120121 }
122+ if (!orientationString.isEmpty()) {
123+ // Some option we don't know. Give some hint on what went wrong.
124+ qWarning().nospace().noquote() << "Unknown option \"" << orientationString << "\". Supported options are: Landscape, InvertedLandscape, Portrait and InvertedPortrait.";
125+ }
121126 return defaultValue;
122127}