on xenial help sign in
Merge from trunk
commit0f741ad89f6d2f5496c2f79ac38e04dba388a99f authorMichael Terry <michael.terry@canonical.com> dateThu 20 Mar 2014, 09:47 (13 years ago) parent8e9a17609499de
74 files changed+175−82
debian/changelog+19 plugins/DashViews/listviewwithpageheader.cpp+3 plugins/Unity/Indicators/qml/MenuItemFactory.qml+7−1 po/am.po+1−1 po/ar.po+1−1 po/ast.po+1−1 po/az.po+1−1 po/bg.po+1−1 po/bs.po+1−1 po/ca.po+1−1 po/ckb.po+1−1 po/cs.po+1−1 po/da.po+1−1 po/de.po+1−1 po/el.po+1−1 po/en_AU.po+1−1 po/en_GB.po+1−1 po/eo.po+1−1 po/es.po+1−1 po/eu.po+6−6 po/fa.po+1−1 po/fi.po+1−1 po/fo.po+1−1 po/fr.po+1−1 po/gd.po+1−1 po/gl.po+1−1 po/he.po+1−1 po/hi.po+1−1 po/hr.po+1−1 po/hu.po+1−1 po/hy.po+1−1 po/id.po+1−1 po/is.po+1−1 po/it.po+1−1 po/ja.po+1−1 po/km.po+1−1 po/kn.po+1−1 po/ko.po+1−1 po/ky.po+1−1 po/lo.po+1−1 po/lt.po+1−1 po/lv.po+1−1 po/ml.po+1−1 po/mr.po+1−1 po/ms.po+1−1 po/my.po+1−1 po/nb.po+1−1 po/nl.po+1−1 po/pl.po+1−1 po/pt.po+1−1 po/pt_BR.po+1−1 po/ro.po+1−1 po/ru.po+1−1 po/shn.po+1−1 po/si.po+1−1 po/sl.po+1−1 po/sq.po+1−1 po/sr.po+1−1 po/sv.po+1−1 po/sw.po+1−1 po/ta.po+1−1 po/te.po+1−1 po/tr.po+1−1 po/ug.po+1−1 po/uk.po+1−1 po/vi.po+1−1 po/xh.po+1−1 po/zh_CN.po+1−1 po/zh_HK.po+1−1 po/zh_TW.po+1−1 qml/Components/VolumeControl.qml+6−2 qml/Panel/IndicatorRow.qml+1−1 tests/plugins/DashViews/listviewwithpageheadertest.cpp+20 tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+47−6
debian/changelog+19
@@ -4,6 +4,25 @@ unity8 (7.85+14.04.20140306-0ubuntu1) UNRELEASED; urgency=medium
44
55 -- Michael Terry <mterry@ubuntu.com> Wed, 12 Mar 2014 14:39:45 -0400
66
7+unity8 (7.84+14.04.20140319.1-0ubuntu1) trusty; urgency=low
8+
9+ [ Michał Sawicz ]
10+ * Work around bug #1293478 - make sure to send ints, not doubles for
11+ volume control. (LP: #1293478)
12+
13+ [ Nick Dedekind ]
14+ * Fixed binding being cleared when manually changing slider value
15+ (lp#1283191). (LP: #1283191)
16+
17+ [ Albert Astals ]
18+ * Fix indicators highlight position on 5.2 We need to take into
19+ account the list originX if we're using the list delegates x outside
20+ the list itself
21+ * LVWPH: Make sure m_firstVisibleIndex is correctly set on
22+ removeNonVisibleItems
23+
24+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 19 Mar 2014 16:40:20 +0000
25+
726unity8 (7.84+14.04.20140317.2-0ubuntu1) trusty; urgency=low
827
928 [ CI bot ]
plugins/DashViews/listviewwithpageheader.cpp+3
@@ -772,6 +772,9 @@ bool ListViewWithPageHeader::removeNonVisibleItems(qreal bufferFrom, qreal buffe
772772 ++i;
773773 }
774774 }
775+ if (!foundVisible) {
776+ m_firstVisibleIndex = -1;
777+ }
775778 if (m_firstVisibleIndex != oldFirstVisibleIndex) {
776779 adjustMinYExtent();
777780 }
plugins/Unity/Indicators/qml/MenuItemFactory.qml+7−1
@@ -77,6 +77,7 @@ Item {
7777 property var menuModel: menuFactory.menuModel
7878 property int menuIndex: -1
7979 property var extendedData: menuData && menuData.ext || undefined
80+ property var serverValue: getExtendedProperty(menuData, "actionState", undefined)
8081
8182 text: menuData && menuData.label || ""
8283 iconSource: menuData && menuData.icon || ""
@@ -91,7 +92,6 @@ Item {
9192 }
9293 return maximum;
9394 }
94− value: menuData && menuData.actionState || 0.0
9595 enabled: menuData && menuData.sensitive || false
9696
9797 onMenuModelChanged: {
@@ -100,6 +100,12 @@ Item {
100100 onMenuIndexChanged: {
101101 loadAttributes();
102102 }
103+ onServerValueChanged: {
104+ // value can be changed by slider, so a binding won't work.
105+ if (serverValue !== undefined) {
106+ value = serverValue;
107+ }
108+ }
103109 onUpdated: {
104110 menuModel.changeState(menuIndex, value);
105111 }
po/am.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n > 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ar.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n % 100 >= "
1818"3 && n % 100 <= 10 ? 3 : n % 100 >= 11 && n % 100 <= 99 ? 4 : 5;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ast.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/az.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/bg.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/bs.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ca.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ckb.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/cs.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/da.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/de.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/el.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/en_AU.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/en_GB.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/eo.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/es.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/eu.po+6−6
@@ -8,14 +8,14 @@ msgstr ""
88"Project-Id-Version: unity8\n"
99"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
1010"POT-Creation-Date: 2014-02-13 18:37+0000\n"
11−"PO-Revision-Date: 2014-03-16 17:40+0000\n"
11+"PO-Revision-Date: 2014-03-17 20:56+0000\n"
1212"Last-Translator: Ibai Oihanguren Sala <Unknown>\n"
1313"Language-Team: Basque <eu@li.org>\n"
1414"MIME-Version: 1.0\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-17 05:13+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
@@ -104,8 +104,8 @@ msgstr "(%1)"
104104#, qt-format
105105msgid "%1 review"
106106msgid_plural "%1 reviews"
107−msgstr[0] "berrikuspen %1"
108−msgstr[1] "%1 berrikuspen"
107+msgstr[0] "kritika %1"
108+msgstr[1] "%1 kritika"
109109
110110#: qml/Dash/Previews/PreviewActionCombo.qml:34
111111msgid "More..."
@@ -117,7 +117,7 @@ msgstr "Gutxiago..."
117117
118118#: qml/Dash/Previews/PreviewRating.qml:114 qml/Dash/Previews/Reviews.qml:74
119119msgid "Add a review"
120−msgstr "Gehitu berrikuspena"
120+msgstr "Gehitu kritika"
121121
122122#: qml/Dash/Previews/PreviewRating.qml:153 qml/Dash/Previews/Reviews.qml:121
123123msgid "Send"
@@ -125,7 +125,7 @@ msgstr "Bidali"
125125
126126#: qml/Dash/Previews/Reviews.qml:86
127127msgid "Review"
128−msgstr "Berrikusi"
128+msgstr "Egin kritika"
129129
130130#: qml/Dash/Previews/Reviews.qml:139
131131msgid "Comments:"
po/fa.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/fi.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/fo.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/fr.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n > 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/gd.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : "
1818"(n > 2 && n < 20) ? 2 : 3;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/gl.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/he.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/hi.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/hr.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/hu.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/hy.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/id.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/is.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/it.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ja.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/km.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/kn.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ko.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ky.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/lo.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/lt.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"(n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/lv.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ml.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/mr.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ms.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/my.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/nb.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/nl.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/pl.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
1818"|| n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/pt.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/pt_BR.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n > 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ro.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=(n == 1 ? 0: (((n % 100 > 19) || ((n % 100 "
1818"== 0) && (n != 0))) ? 2: 1));\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ru.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/shn.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=(n == 1) ? 0 : 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/si.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/sl.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || "
1818"n%100==4 ? 3 : 0);\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/sq.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:25+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/sr.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/sv.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/sw.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ta.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020"Language: ta\n"
2121
po/te.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/tr.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/ug.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/uk.po+1−1
@@ -16,7 +16,7 @@ msgstr ""
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
1818"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
19+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
2020"X-Generator: Launchpad (build 16963)\n"
2121
2222#: plugins/Unity/Launcher/launcheritem.cpp:43
po/vi.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/xh.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/zh_CN.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/zh_HK.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
po/zh_TW.po+1−1
@@ -15,7 +15,7 @@ msgstr ""
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2014-03-15 07:34+0000\n"
18+"X-Launchpad-Export-Date: 2014-03-18 06:26+0000\n"
1919"X-Generator: Launchpad (build 16963)\n"
2020
2121#: plugins/Unity/Launcher/launcheritem.cpp:43
qml/Components/VolumeControl.qml+6−2
@@ -22,6 +22,10 @@ Item {
2222 objectName: "volumeControl"
2323 visible: false
2424
25+ // TODO Work around http://pad.lv/1293478 until qmenumodel knows to cast
26+ readonly property int stepUp: 1
27+ readonly property int stepDown: -1
28+
2529 QDBusActionGroup {
2630 id: actionGroup
2731 busType: 1
@@ -32,11 +36,11 @@ Item {
3236 }
3337
3438 function volumeUp() {
35− actionGroup.actionObject.activate(1);
39+ actionGroup.actionObject.activate(stepUp);
3640 }
3741
3842 function volumeDown() {
39− actionGroup.actionObject.activate(-1);
43+ actionGroup.actionObject.activate(stepDown);
4044 }
4145
4246 Component.onCompleted: actionGroup.start()
qml/Panel/IndicatorRow.qml+1−1
@@ -137,7 +137,7 @@ Item {
137137 anchors.top: row.bottom
138138 visible: indicatorRow.currentItem != null
139139
140− property real intendedX: row.x + (indicatorRow.currentItem != null ? indicatorRow.currentItem.x + centerOffset : 0)
140+ property real intendedX: row.x + (indicatorRow.currentItem != null ? (indicatorRow.currentItem.x - row.originX) + centerOffset : 0)
141141 x: intendedX >= row.x ? (intendedX + width <= row.x + row.width ? intendedX : row.x + row.width - width) : row.x // listview boundaries
142142 width: indicatorRow.currentItem != null ? indicatorRow.currentItem.width : 0
143143
tests/plugins/DashViews/listviewwithpageheadertest.cpp+20
@@ -1887,6 +1887,26 @@ private Q_SLOTS:
18871887 QTRY_COMPARE(lvwph->m_visibleItems.count(), 1);
18881888 }
18891889
1890+ void testResizeScrolledBigItem()
1891+ {
1892+ QMetaObject::invokeMethod(model, "removeItems", Q_ARG(QVariant, 0), Q_ARG(QVariant, 6));
1893+ QTRY_COMPARE(lvwph->m_visibleItems.count(), 0);
1894+
1895+ QMetaObject::invokeMethod(model, "insertItem", Q_ARG(QVariant, 0), Q_ARG(QVariant, 10000));
1896+ changeContentY(8000);
1897+
1898+ // Pretend the list is busy requesting some other index
1899+ lvwph->m_asyncRequestedIndex = 4;
1900+
1901+ lvwph->m_visibleItems[0]->m_item->setHeight(100);
1902+ // This resize makes the item go outside the viewport so its deleted
1903+ QCOMPARE(lvwph->m_visibleItems.count(), 0);
1904+ QCOMPARE(lvwph->m_firstVisibleIndex, -1);
1905+ // On the next polish the item will be readded
1906+ QTRY_COMPARE(lvwph->m_visibleItems.count(), 1);
1907+ QTRY_COMPARE(lvwph->m_firstVisibleIndex, 0);
1908+ }
1909+
18901910private:
18911911 QQuickView *view;
18921912 ListViewWithPageHeader *lvwph;
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+47−6
@@ -148,14 +148,14 @@ Item {
148148
149149 function test_create_sliderMenu_data() {
150150 return [
151− {label: "testLabel1", enabled: false, minValue: 0, maxValue: 100, value: 10.5 },
152− {label: "testLabel2", enabled: true, minValue: 0, maxValue: 100, value: 100 },
151+ {tag: "disabled", enabled: false, minValue: 0, maxValue: 100, value1: 10.5, value2: 22 },
152+ {tag: "enabled", enabled: true, minValue: 0, maxValue: 100, value1: 100, value2: 50 },
153153 ];
154154 }
155155
156156 function test_create_sliderMenu(data) {
157157 menuData.type = "com.canonical.indicator.slider"
158− menuData.label = data.label;
158+ menuData.label = data.tag;
159159 menuData.sensitive = data.enabled;
160160 menuData.ext = {
161161 'minIcon': "file:///testMinIcon",
@@ -163,20 +163,61 @@ Item {
163163 'minValue': data.minValue,
164164 'maxValue': data.maxValue
165165 };
166− menuData.actionState = data.value;
166+ menuData.actionState = data.value1;
167167
168168 loader.data = menuData;
169169 loader.sourceComponent = factory.load(menuData);
170170 tryCompareFunction(function() { return loader.item != undefined; }, true);
171171 compare(loader.item.objectName, "sliderMenu", "Should have created a slider menu");
172172
173− compare(loader.item.text, data.label, "Label does not match data");
173+ compare(loader.item.text, data.tag, "Label does not match data");
174174 compare(loader.item.minIcon, "file:///testMinIcon", "MinIcon does not match data");
175175 compare(loader.item.maxIcon, "file:///testMaxIcon", "MaxIcon does not match data");
176176 compare(loader.item.minimumValue, data.minValue, "MinValue does not match data");
177177 compare(loader.item.maximumValue, data.maxValue, "MaxValue does not match data");
178− compare(loader.item.value, data.value, "Value does not match data");
179178 compare(loader.item.enabled, data.enabled, "Enabled does not match data");
179+ compare(loader.item.value, data.value1, "Value does not match data");
180+
181+ menuData.actionState = data.value2;
182+ compare(loader.item.value, data.value2, "Value does not match new data");
183+ }
184+
185+ function test_create_sliderMenu_lp1283191_data() {
186+ return [
187+ {tag: "disabled", enabled: false, minValue: 0, maxValue: 100, value1: 10.5, value2: 22, manualValue: 0 },
188+ {tag: "enabled", enabled: true, minValue: 0, maxValue: 100, value1: 100, value2: 50, manualValue: 30 },
189+ {tag: "test-zero", enabled: true, minValue: 0, maxValue: 100, value1: 10, value2: 0, manualValue: 20 },
190+ ];
191+ }
192+
193+ function test_create_sliderMenu_lp1283191(data) {
194+ menuData.type = "com.canonical.indicator.slider"
195+ menuData.label = data.tag;
196+ menuData.sensitive = data.enabled;
197+ menuData.ext = {
198+ 'minIcon': "file:///testMinIcon",
199+ 'maxIcon': "file:///testMaxIcon",
200+ 'minValue': data.minValue,
201+ 'maxValue': data.maxValue
202+ };
203+ menuData.actionState = data.value1;
204+
205+ loader.data = menuData;
206+ loader.sourceComponent = factory.load(menuData);
207+ tryCompareFunction(function() { return loader.item != undefined; }, true);
208+ compare(loader.item.value, data.value1, "Value does not match data");
209+
210+ var slider = findChild(loader.item, "slider");
211+ verify(slider !== null);
212+
213+ slider.value = data.manualValue;
214+ compare(loader.item.value, data.manualValue, "Slider value does not match manual set value");
215+
216+ menuData.actionState = data.value2;
217+ compare(loader.item.value, data.value2, "Value does not match new data");
218+
219+ menuData.actionState = undefined;
220+ compare(loader.item.value, data.value2, "Undefined state should not update slider value");
180221 }
181222
182223 function test_create_buttonMenu_data() {