git.iko.soy/maciek134/podphoenix
on main help sign in
Converted HeaderListItem to using ListItemLayout
commit033baaebfb7c33031fd9c16f232a00bc5e189a80 authorNekhelesh Ramananthan <krnekhelesh@gmail.com> dateSat 20 Feb 2016, 12:01 (11 years ago) parent8f227a4
3 files changed+37−49
app/components/HeaderListItem.qml+6−6 app/ui/SettingsPage.qml+14−7 po/com.mikeasoft.podbird.pot+17−36
app/components/HeaderListItem.qml+6−6
@@ -22,14 +22,14 @@ import Ubuntu.Components 1.3
2222ListItem {
2323 id: headerListItem
2424
25− property alias title: headerText.text
25+ property alias title: headerText.title
2626
27− height: headerText.implicitHeight + units.gu(1)
27+ height: headerText.height + divider.height
2828
29− Label {
29+ ListItemLayout {
3030 id: headerText
31− color: podbird.appTheme.baseText
32− anchors { left: parent.left; leftMargin: units.gu(2); verticalCenter: parent.verticalCenter }
33− font.weight: Font.DemiBold
31+ title.text: " "
32+ title.color: podbird.appTheme.baseText
33+ title.font.weight: Font.DemiBold
3434 }
3535}
app/ui/SettingsPage.qml+14−7
@@ -111,7 +111,7 @@ Page {
111111 HeaderListItem {
112112 // TRANSLATORS: Shortened form of "Miscellaneous" which is shown to denote other setting options
113113 // that doesn't fit into any other category.
114− title: i18n.tr("General Settings")
114+ title.text: i18n.tr("General Settings")
115115 }
116116
117117 SingleValueListItem {
@@ -122,7 +122,7 @@ Page {
122122 }
123123
124124 HeaderListItem {
125− title: i18n.tr("Playback Settings")
125+ title.text: i18n.tr("Playback Settings")
126126 }
127127
128128 SingleValueListItem {
@@ -140,12 +140,19 @@ Page {
140140 }
141141
142142 HeaderListItem {
143− title: i18n.tr("Podcast Episode Settings")
143+ title.text: i18n.tr("Podcast Episode Settings")
144144 }
145145
146− SubtitledListItem {
147− title: i18n.tr("Automatically delete old episodes")
148− subtitle: i18n.tr("Delete episodes that are older than a given number of days for each podcast")
146+ ListItem {
147+ height: deleteEpisodeLayout.height + divider.height
148+ ListItemLayout {
149+ id: deleteEpisodeLayout
150+ title.text: i18n.tr("Automatically delete old episodes")
151+ title.color: podbird.appTheme.baseText
152+ summary.text: i18n.tr("Delete episodes that are older than a given number of days for each podcast")
153+ summary.color: podbird.appTheme.baseSubText
154+ ProgressionSlot {}
155+ }
149156 onClicked: mainStack.push(Qt.resolvedUrl("../settings/CleanSetting.qml"))
150157 }
151158
@@ -158,7 +165,7 @@ Page {
158165 HeaderListItem {
159166 // TRANSLATORS: Shortened form of "Miscellaneous" which is shown to denote other setting options
160167 // that doesn't fit into any other category.
161− title: i18n.tr("Misc.")
168+ title.text: i18n.tr("Misc.")
162169 }
163170
164171 SubtitledListItem {
po/com.mikeasoft.podbird.pot+17−36
@@ -8,7 +8,7 @@ msgid ""
88msgstr ""
99"Project-Id-Version: \n"
1010"Report-Msgid-Bugs-To: \n"
11−"POT-Creation-Date: 2016-02-20 02:26+0530\n"
11+"POT-Creation-Date: 2016-02-20 16:28+0530\n"
1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -23,24 +23,24 @@ msgid "Skip"
2323msgstr ""
2424
2525#. TRANSLATORS: this refers to a number of songs greater than one. The actual number will be prepended to the string automatically (plural forms are not yet fully supported in usermetrics, the library that displays that string)
26−#: ../app/podbird.qml:178
26+#: ../app/podbird.qml:182
2727#, qt-format
2828msgid "Podcasts listened to today: <b>%1</b>"
2929msgstr ""
3030
31−#: ../app/podbird.qml:179
31+#: ../app/podbird.qml:183
3232msgid "No podcasts listened to today"
3333msgstr ""
3434
35−#: ../app/podbird.qml:260
35+#: ../app/podbird.qml:264
3636msgid "Podcasts"
3737msgstr ""
3838
39−#: ../app/podbird.qml:274
39+#: ../app/podbird.qml:278
4040msgid "Add New Podcasts"
4141msgstr ""
4242
43−#: ../app/podbird.qml:289
43+#: ../app/podbird.qml:293
4444msgid "Settings"
4545msgstr ""
4646
@@ -60,7 +60,7 @@ msgid "%1 min"
6060msgstr ""
6161
6262#. TRANSLATORS: About as in information about the app
63−#: ../app/settings/About.qml:25 ../app/ui/SettingsPage.qml:166
63+#: ../app/settings/About.qml:25 ../app/ui/SettingsPage.qml:173
6464msgid "About"
6565msgstr ""
6666
@@ -109,7 +109,7 @@ msgid_plural "%1 years"
109109msgstr[0] ""
110110msgstr[1] ""
111111
112−#: ../app/settings/Credits.qml:26 ../app/ui/SettingsPage.qml:172
112+#: ../app/settings/Credits.qml:26 ../app/ui/SettingsPage.qml:179
113113msgid "Credits"
114114msgstr ""
115115
@@ -145,36 +145,17 @@ msgid_plural "%1 episodes"
145145msgstr[0] ""
146146msgstr[1] ""
147147
148−#: ../app/settings/ThemeSetting.qml:28 ../app/ui/SettingsPage.qml:119
148+#: ../app/settings/ThemeSetting.qml:27 ../app/ui/SettingsPage.qml:119
149149msgid "Theme"
150150msgstr ""
151151
152−#. TRANSLATORS: The argument here is the name of the application (Podbird)
153−#: ../app/settings/ThemeSetting.qml:40
154−#, qt-format
155−msgid "Restart %1"
156−msgstr ""
157−
158−#. TRANSLATORS: The argument here is the name of the application (Podbird)
159−#: ../app/settings/ThemeSetting.qml:42
160−#, qt-format
161−msgid ""
162−"You will need to restart %1 to change the application theme. This is "
163−"necessary to avoid any strange behaviour in the app. We apologize for the "
164−"inconvenience"
165−msgstr ""
166−
167−#: ../app/settings/ThemeSetting.qml:45
168−msgid "Exit App"
169−msgstr ""
170−
171152#. TRANSLATORS: Light Theme
172−#: ../app/settings/ThemeSetting.qml:59 ../app/ui/SettingsPage.qml:120
153+#: ../app/settings/ThemeSetting.qml:34 ../app/ui/SettingsPage.qml:120
173154msgid "Light"
174155msgstr ""
175156
176157#. TRANSLATORS: Dark Theme
177−#: ../app/settings/ThemeSetting.qml:61 ../app/ui/SettingsPage.qml:120
158+#: ../app/settings/ThemeSetting.qml:36 ../app/ui/SettingsPage.qml:120
178159msgid "Dark"
179160msgstr ""
180161
@@ -388,30 +369,30 @@ msgstr ""
388369msgid "Podcast Episode Settings"
389370msgstr ""
390371
391−#: ../app/ui/SettingsPage.qml:147
372+#: ../app/ui/SettingsPage.qml:150
392373msgid "Automatically delete old episodes"
393374msgstr ""
394375
395−#: ../app/ui/SettingsPage.qml:148
376+#: ../app/ui/SettingsPage.qml:152
396377msgid ""
397378"Delete episodes that are older than a given number of days for each podcast"
398379msgstr ""
399380
400−#: ../app/ui/SettingsPage.qml:153
381+#: ../app/ui/SettingsPage.qml:160
401382msgid "Automatically download new episodes"
402383msgstr ""
403384
404−#: ../app/ui/SettingsPage.qml:154
385+#: ../app/ui/SettingsPage.qml:161
405386msgid "Default number of new episodes to download for each podcast"
406387msgstr ""
407388
408389#. TRANSLATORS: Shortened form of "Miscellaneous" which is shown to denote other setting options
409390#. that doesn't fit into any other category.
410−#: ../app/ui/SettingsPage.qml:161
391+#: ../app/ui/SettingsPage.qml:168
411392msgid "Misc."
412393msgstr ""
413394
414−#: ../app/ui/SettingsPage.qml:177
395+#: ../app/ui/SettingsPage.qml:184
415396msgid "Report Bug"
416397msgstr ""
417398