on xenial help sign in
align position of the clipper item with the iconItem for easier understanding
2879c52Michael Zanetti
qml/Launcher/LauncherDelegate.qml+4−2
@@ -153,14 +153,16 @@ Item {
153
153
154 Item {
154 Item {
155 id: clipper
155 id: clipper
156− anchors.fill: parent
156+ anchors.centerIn: parent
157+ width: iconItem.width
158+ height: iconItem.height
157 Rectangle {
159 Rectangle {
158 anchors {
160 anchors {
159 fill: parent
161 fill: parent
160 topMargin: -units.gu(2)
162 topMargin: -units.gu(2)
161 leftMargin: -units.gu(2)
163 leftMargin: -units.gu(2)
162 rightMargin: -units.gu(2)
164 rightMargin: -units.gu(2)
163− bottomMargin: units.gu(1)
165+ bottomMargin: units.gu(1.2)
164 }
166 }
165 color: "red"
167 color: "red"
166 rotation: root.rotation + 45
168 rotation: root.rotation + 45
tests/mocks/Unity/Launcher/MockLauncherModel.cpp+1
@@ -57,6 +57,7 @@ MockLauncherModel::MockLauncherModel(QObject* parent): LauncherModelInterface(pa
57 item->setPinned(true);
57 item->setPinned(true);
58 m_list.append(item);
58 m_list.append(item);
59 item = new MockLauncherItem("calendar-app", "/usr/share/applications/calendar-app.desktop","Calendar", "calendar", this);
59 item = new MockLauncherItem("calendar-app", "/usr/share/applications/calendar-app.desktop","Calendar", "calendar", this);
60+ item->setPinned(true);
60 m_list.append(item);
61 m_list.append(item);
61}
62}
62
63