Changeset View
Changeset View
Standalone View
Standalone View
applets/kickoff/package/contents/ui/ConfigButtons.qml
Show All 10 Lines | |||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.0 | 19 | import QtQuick 2.5 | ||
20 | import QtQuick.Layouts 1.0 as Layouts | | |||
21 | import QtQuick.Controls 1.0 as Controls | | |||
22 | import QtQml.Models 2.1 | 20 | import QtQml.Models 2.1 | ||
21 | | ||||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 22 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | import org.kde.kirigami 2.5 as Kirigami | ||||
24 | 24 | | |||
25 | 25 | | |||
26 | GridView { | 26 | GridView { | ||
27 | id: configButtons | 27 | id: configButtons | ||
28 | 28 | | |||
29 | cellHeight: units.gridUnit * 5 | 29 | cellHeight: units.gridUnit * 6 + units.smallSpacing | ||
filipf: maybe `units.smallSpacing` would be enough, what do you think? | |||||
ngraham: Yeah, good call | |||||
30 | cellWidth: units.gridUnit * 6 | 30 | cellWidth: units.gridUnit * 6 | ||
31 | 31 | | |||
32 | width: cellWidth * 5 | 32 | width: cellWidth * 5 | ||
33 | height: cellHeight * 2 | 33 | height: cellHeight * 2 | ||
34 | 34 | | |||
35 | property var items: { | 35 | property var items: { | ||
36 | "bookmark": { icon: "bookmarks", text: i18n("Favorites")}, | 36 | "bookmark": { icon: "bookmarks", text: i18n("Favorites")}, | ||
37 | "application": { icon: "applications-other", text: i18n("Applications")}, | 37 | "application": { icon: "applications-other", text: i18n("Applications")}, | ||
▲ Show 20 Lines • Show All 166 Lines • ▼ Show 20 Line(s) | 203 | onDropped: { | |||
204 | var targetIndex = drag.source.visualIndex; | 204 | var targetIndex = drag.source.visualIndex; | ||
205 | updateConfiguration(); | 205 | updateConfiguration(); | ||
206 | sourceIndex = -1; | 206 | sourceIndex = -1; | ||
207 | previousCell = [-1, -1]; | 207 | previousCell = [-1, -1]; | ||
208 | } | 208 | } | ||
209 | } | 209 | } | ||
210 | } | 210 | } | ||
211 | } | 211 | } | ||
212 | | ||||
213 | Kirigami.Heading { | ||||
214 | level: 2 | ||||
215 | text: i18n("Active Tabs") | ||||
216 | anchors.bottom: configButtons.top | ||||
217 | } | ||||
218 | | ||||
219 | Kirigami.Heading { | ||||
220 | level: 2 | ||||
221 | text: i18n("Inactive Tabs") | ||||
222 | anchors.bottom: configButtons.verticalCenter | ||||
223 | } | ||||
212 | } | 224 | } |
maybe units.smallSpacing would be enough, what do you think?