on xenial help sign in
Rename CardAttributesGrid to CardAttributes.

Add copyright header to CardAttributes.qml.

commit8cf8e82c981664f3f7ce7ed8675cdb0860ee12e2 authorYing-Chun Liu <paul.liu@canonical.com> dateTue 22 Jul 2014, 18:03 (12 years ago) parentad20b1a
6 files changed+25−10
plugins/Dash/CardAttributesGrid.qml → plugins/Dash/CardAttributes.qml+16 plugins/Dash/CardCreator.js+1−1 plugins/Dash/qmldir+1−1 tests/plugins/Dash/CMakeLists.txt+1−1 tests/plugins/Dash/cardcreator/7.res+1−2 tests/plugins/Dash/tst_CardAttributesGrid.qml → tests/plugins/Dash/tst_CardAttributes.qml+5−5
plugins/Dash/CardAttributesGrid.qml → plugins/Dash/CardAttributes.qmlrenamed+16
@@ -1,3 +1,19 @@
1+/*
2+ * Copyright 2014 Canonical Ltd.
3+ *
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+
117import QtQuick 2.2
218import QtQuick.Layouts 1.1
319import Ubuntu.Components 1.1
plugins/Dash/CardCreator.js+1−1
@@ -274,7 +274,7 @@ var kSubtitleLabelCode = 'Label { \n\
274274 }\n';
275275
276276// %1 is used as anchors of attributesRow
277−var kAttributesRowCode = 'CardAttributesGrid { \n\
277+var kAttributesRowCode = 'CardAttributes { \n\
278278 id: attributesRow; \n\
279279 objectName: "attributesRow"; \n\
280280 anchors { %1 } \n\
plugins/Dash/qmldir+1−1
@@ -3,4 +3,4 @@ plugin Dash-qml
33typeinfo Dash.qmltypes
44singleton CardCreatorCache 0.1 CardCreatorCache.qml
55ScopeStyle 0.1 ScopeStyle.qml
6−CardAttributesGrid 0.1 CardAttributesGrid.qml
6+CardAttributes 0.1 CardAttributes.qml
tests/plugins/Dash/CMakeLists.txt+1−1
@@ -79,4 +79,4 @@ set(qmltest_DEFAULT_NO_ADD_TEST TRUE)
7979set(qmltest_DEFAULT_PROPERTIES ENVIRONMENT "LC_ALL=C")
8080add_qml_test(. ScopeStyle IMPORT_PATHS ${CMAKE_BINARY_DIR}/plugins)
8181add_qml_test(. ListViewWithPageHeaderQML IMPORT_PATHS ${CMAKE_BINARY_DIR}/plugins)
82−add_qml_test(. CardAttributesGrid IMPORT_PATHS ${CMAKE_BINARY_DIR}/plugins)
82+add_qml_test(. CardAttributes IMPORT_PATHS ${CMAKE_BINARY_DIR}/plugins)
tests/plugins/Dash/cardcreator/7.res+1−2
@@ -111,10 +111,9 @@ Label {
111111 horizontalAlignment: root.headerAlignment;
112112 }
113113,
114−CardAttributesGrid {
114+CardAttributes {
115115 id: attributesRow;
116116 objectName: "attributesRow";
117− height: units.gu(1.5);
118117 anchors { left: parent.left; right: parent.right }
119118 model: cardData["attributes"]
120119 }
tests/plugins/Dash/tst_CardAttributesGrid.qml → tests/plugins/Dash/tst_CardAttributes.qmlrenamed+5−5
@@ -27,13 +27,13 @@ Item {
2727 [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"},{"value":"text3"}]
2828 ]
2929
30− CardAttributesGrid {
31− id: cardAttributesGrid
30+ CardAttributes {
31+ id: cardAttributes
3232 model: testData[0]
3333 }
3434
3535 TestCase {
36− name: "CardAttributesGridTest"
36+ name: "CardAttributesTest"
3737 when: windowShown
3838
3939 function init() {
@@ -44,8 +44,8 @@ Item {
4444 }
4545
4646 function test_columns(data) {
47− cardAttributesGrid.model = data;
48− compare(cardAttributesGrid.columns, data.length);
47+ cardAttributes.model = data;
48+ compare(cardAttributes.columns, data.length);
4949 }
5050 }
5151}