X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fqml%2FConfigParametersComponent.qml;h=4ef7b43150fb60eb257fbe2652c0aebf941a5601;hb=0f8d4b44f550d528c2b6b09fb0f6a8c7821caf9f;hp=61a1a13a018c917d072d422b3089a0c852027746;hpb=3adef4c0354db34494fcac678712490d0b7fe466;p=marketstoday diff --git a/src/qml/ConfigParametersComponent.qml b/src/qml/ConfigParametersComponent.qml index 61a1a13..4ef7b43 100644 --- a/src/qml/ConfigParametersComponent.qml +++ b/src/qml/ConfigParametersComponent.qml @@ -1,5 +1,5 @@ /* -@version: 0.4 +@version: 0.5 @author: Sudheer K. @license: GNU General Public License */ @@ -12,6 +12,9 @@ Item { property bool updateFreqEnabled property string updateFreqMin property bool updateWeekdaysOnly + property int fontSizeMed: 24 + property int fontSizeSmall: 20 + //property bool updateOnSavedNetworksOnly property string rssURL: "http://finance.yahoo.com/rss/topfinstories" signal logRequest(string strMessage) @@ -34,7 +37,7 @@ Item { function loadSettings(){ var value; value = DBUtility.getSetting("UpdateFreqency"); - if (!value || value == "0.0" || value === "" || isNaN(value)){ + if (!value || value === "0.0" || value === "" || isNaN(value)){ configParametersComponent.updateFreqEnabled = false; } else{ @@ -42,7 +45,7 @@ Item { configParametersComponent.updateFreqMin = parseInt(value); } value = DBUtility.getSetting("UpdateWeekdaysOnly"); - if (!value || value == "0.0" || value === ""|| !configParametersComponent.updateFreqEnabled){ + if (!value || value === "0.0" || value === ""|| !configParametersComponent.updateFreqEnabled){ configParametersComponent.updateWeekdaysOnly = false; } else{ @@ -60,7 +63,7 @@ Item { */ value = DBUtility.getSetting("RSSURL"); - if (!value || value == "Unknown" || value === ""){ + if (!value || value === "Unknown" || value === ""){ //configParametersComponent.rssURL = configParametersComponent.defaultRSSFeed; } else{ @@ -86,7 +89,7 @@ Item { anchors.leftMargin: 35 height: 50 horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 22; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeMed; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black" text: "News Feed" } @@ -118,7 +121,7 @@ Item { Text{ height:parent.height horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" text: "RSS URL: " color: "#ffffff"; } @@ -151,12 +154,12 @@ Item { Text { id: autoUpdateSectionLabel anchors.top: newsSection.bottom - //anchors.topMargin: 10 + anchors.topMargin: 20 anchors.left: parent.left anchors.leftMargin: 35 height: 50 horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 22; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeMed; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black" text: "Auto-Update *" } @@ -203,7 +206,7 @@ Item { Text{ height:parent.height horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" text: "Every " color: configParametersComponent.updateFreqEnabled? "#ffffff" :"#B8B8B8"; } @@ -227,7 +230,7 @@ Item { Text{ height:parent.height horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" text: " minutes" color: configParametersComponent.updateFreqEnabled? "#ffffff" :"#B8B8B8"; } @@ -257,7 +260,7 @@ Item { Text{ height:parent.height horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" text: "Only on weekdays" color: configParametersComponent.updateWeekdaysOnly? "#ffffff" :"#B8B8B8"; } @@ -288,7 +291,7 @@ Item { Text{ height:parent.height horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter - font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" + font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" text: "Only on saved Wifi connections" color: configParametersComponent.updateOnSavedNetworksOnly? "#ffffff" :"#B8B8B8"; }