on xenial help sign in
align position of the clipper item with the iconItem for easier understanding
commit2879c526c4dcb20ac137dfc32194f729a3caf8be authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 3 Jul 2014, 13:42 (12 years ago) parentca89475
2 files changed+5−2
qml/Launcher/LauncherDelegate.qml+4−2 tests/mocks/Unity/Launcher/MockLauncherModel.cpp+1
qml/Launcher/LauncherDelegate.qml+4−2
@@ -153,14 +153,16 @@ Item {
153153
154154 Item {
155155 id: clipper
156− anchors.fill: parent
156+ anchors.centerIn: parent
157+ width: iconItem.width
158+ height: iconItem.height
157159 Rectangle {
158160 anchors {
159161 fill: parent
160162 topMargin: -units.gu(2)
161163 leftMargin: -units.gu(2)
162164 rightMargin: -units.gu(2)
163− bottomMargin: units.gu(1)
165+ bottomMargin: units.gu(1.2)
164166 }
165167 color: "red"
166168 rotation: root.rotation + 45
tests/mocks/Unity/Launcher/MockLauncherModel.cpp+1
@@ -57,6 +57,7 @@ MockLauncherModel::MockLauncherModel(QObject* parent): LauncherModelInterface(pa
5757 item->setPinned(true);
5858 m_list.append(item);
5959 item = new MockLauncherItem("calendar-app", "/usr/share/applications/calendar-app.desktop","Calendar", "calendar", this);
60+ item->setPinned(true);
6061 m_list.append(item);
6162}
6263