From: Luciano Montanaro Date: Sat, 23 Jul 2011 01:11:11 +0000 (+0200) Subject: Added my own UiConstants file since I cannot find the official one. X-Git-Tag: tags/0.4.81~102 X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;h=eab8c5dc302327f880fb37195619f194dcf1239e;p=quandoparte Added my own UiConstants file since I cannot find the official one. I will investigate about this later --- diff --git a/application/application.pro b/application/application.pro index e367245..5ad72e8 100644 --- a/application/application.pro +++ b/application/application.pro @@ -109,7 +109,9 @@ OTHER_FILES += \ resources/harmattan/qml/main.qml \ resources/harmattan/qml/StationListPage.qml \ resources/harmattan/qml/StationPage.qml \ - resources/harmattan/qml/SearchBar.qml + resources/harmattan/qml/SearchBar.qml \ + resources/harmattan/qml/PageHeader.qml \ + resources/harmattan/qml/uiconstants.js unix { isEmpty(PREFIX) { @@ -170,7 +172,7 @@ unix:!symbian { } harmattan { - qml.files = resources/harmattan/qml/*.qml + qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js qml.path = $$DATADIR/qml INSTALLS += qml } diff --git a/application/resources/harmattan/qml/uiconstants.js b/application/resources/harmattan/qml/uiconstants.js new file mode 100644 index 0000000..8bbe59c --- /dev/null +++ b/application/resources/harmattan/qml/uiconstants.js @@ -0,0 +1,14 @@ +.pragma library + +const DefaultMargins = 16 + +const HeaderDefaultHeightLandscape = 46 +const HeaderDefaultHeightPortrait = 72 + +const HeaderDefaultTopSpacingPortrait = 20 +const HeaderDefaultBottomSpacingPortrait = 20 + +const HeaderDefaultTopSpacingLandscape = 16 +const HeaderDefaultBottomSpacingLandscape = 16 + +const SearchBarDefaultHeight = 80