[sailfish] removing the ExtraLarge FontSize Option, that is way too big. Also output the detected locale via debug on start

This commit is contained in:
Hauke Schade 2014-04-04 01:49:34 +02:00
parent aaf34d9e2d
commit 0f9eae01b6
2 changed files with 7 additions and 9 deletions

View file

@ -45,6 +45,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
app->setOrganizationName("Hauke Schade");
QString locale = QLocale::system().name();
qDebug() << "detected locale is " << locale;
QTranslator translator;
/* the ":/" is a special directory Qt uses to
* distinguish resources;

View file

@ -84,29 +84,26 @@ Page {
anchors { left: parent.left; right: parent.right }
label: qsTr('Font Size')
minimumValue: Theme.fontSizeTiny
maximumValue: Theme.fontSizeExtraLarge
maximumValue: Theme.fontSizeHuge
stepSize: 1
value: settings.webviewFontSize
valueText: {
switch (value) {
case Theme.fontSizeTiny:
case parseInt(Theme.fontSizeTiny):
qsTr("Tiny")
break
case Theme.fontSizeSmall:
case parseInt(Theme.fontSizeSmall):
qsTr("Small")
break
case Theme.fontSizeMedium:
case parseInt(Theme.fontSizeMedium):
qsTr("Medium")
break
case Theme.fontSizeLarge:
case parseInt(Theme.fontSizeLarge):
qsTr("Large")
break
case Theme.fontSizeHuge:
case parseInt(Theme.fontSizeHuge):
qsTr("Huge")
break
case Theme.fontSizeExtraLarge:
qsTr("Extra Large")
break
default:
value
}