From c21bc808d7cdfde50cd39666da030b03d4d2a40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 19 Mar 2013 03:35:24 +0100 Subject: [PATCH] layout improvements --- .../contents/ui/IconsPage.qml | 32 +++++++++---------- .../contents/ui/PlasmoidPage.qml | 1 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/applets/testcomponentsapplet/contents/ui/IconsPage.qml b/applets/testcomponentsapplet/contents/ui/IconsPage.qml index 6140f092f..c1c5fd5ff 100644 --- a/applets/testcomponentsapplet/contents/ui/IconsPage.qml +++ b/applets/testcomponentsapplet/contents/ui/IconsPage.qml @@ -40,52 +40,52 @@ PlasmaComponents.Page { elide: Text.ElideRight text: "Icons" } - Row { - height: _h + PlasmaComponents.Label { + text: "iconSizes.small : " + theme.iconSizes.small + + ", iconSizes.desktop: " + theme.iconSizes.desktop + + ",
iconSizes.toolbar: " + theme.iconSizes.toolbar + + ", iconSizes.dialog : " + theme.iconSizes.dialog + + } + Flow { + //height: _h + width: parent.width spacing: _s PlasmaCore.IconItem { source: "configure" - width: parent.height + width: _h height: width } PlasmaCore.IconItem { source: "dialog-ok" - width: parent.height + width: _h height: width } PlasmaCore.IconItem { source: "maximize" - width: parent.height + width: _h height: width } - PlasmaCore.IconItem { source: "akonadi" - width: parent.height + width: _h height: width } PlasmaCore.IconItem { source: "clock" - width: parent.height + width: _h height: width } QtExtras.QIconItem { icon: "preferences-desktop-icons" - width: parent.height + width: _h height: width } } - PlasmaComponents.Label { - text: "iconSizes.small : " + theme.iconSizes.small + - ", iconSizes.desktop: " + theme.iconSizes.desktop + - ",
iconSizes.toolbar: " + theme.iconSizes.toolbar + - ", iconSizes.dialog : " + theme.iconSizes.dialog - - } } } diff --git a/applets/testcomponentsapplet/contents/ui/PlasmoidPage.qml b/applets/testcomponentsapplet/contents/ui/PlasmoidPage.qml index 1155fcb86..e397fd74b 100644 --- a/applets/testcomponentsapplet/contents/ui/PlasmoidPage.qml +++ b/applets/testcomponentsapplet/contents/ui/PlasmoidPage.qml @@ -17,7 +17,6 @@ */ import QtQuick 2.0 - import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.extras 2.0 as PlasmaExtras