From 25a031efbe9b5b6d91820ae2be721fe7ece237e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 3 Apr 2013 02:25:59 +0200 Subject: [PATCH] Add testing code for tooltips in testcomponentsapplet --- .../contents/ui/IconsPage.qml | 16 ++++++++++++++++ .../contents/ui/testcomponents.qml | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/shell/applets/testcomponentsapplet/contents/ui/IconsPage.qml b/src/shell/applets/testcomponentsapplet/contents/ui/IconsPage.qml index adffaffab..c9d5855e8 100644 --- a/src/shell/applets/testcomponentsapplet/contents/ui/IconsPage.qml +++ b/src/shell/applets/testcomponentsapplet/contents/ui/IconsPage.qml @@ -84,6 +84,22 @@ PlasmaComponents.Page { } } + PlasmaExtras.Heading { + level: 2 + text: "ToolTip" + } + + PlasmaCore.IconItem { + source: "akonadi" + width: parent.width + height: _h*2 + anchors.horizontalCenter: parent.horizontalCenter + + PlasmaCore.ToolTip { + anchors.fill: parent + } + } + } } diff --git a/src/shell/applets/testcomponentsapplet/contents/ui/testcomponents.qml b/src/shell/applets/testcomponentsapplet/contents/ui/testcomponents.qml index d33cbcdcd..1fa294493 100644 --- a/src/shell/applets/testcomponentsapplet/contents/ui/testcomponents.qml +++ b/src/shell/applets/testcomponentsapplet/contents/ui/testcomponents.qml @@ -46,10 +46,10 @@ Item { } height: _h + PlasmaComponents.TabButton { tab: iconsPage; iconSource: "preferences-desktop-icons"} PlasmaComponents.TabButton { tab: dragPage; iconSource: "preferences-desktop-mouse"} PlasmaComponents.TabButton { tab: dialogsPage; iconSource: "preferences-system-windows"} PlasmaComponents.TabButton { tab: buttonsPage; iconSource: "preferences-desktop-theme"} - PlasmaComponents.TabButton { tab: iconsPage; iconSource: "preferences-desktop-icons"} PlasmaComponents.TabButton { tab: plasmoidPage; iconSource: "plasma"} PlasmaComponents.TabButton { tab: mousePage; iconSource: "preferences-desktop-mouse"} } @@ -65,6 +65,9 @@ Item { //currentTab: tabBar.currentTab + IconsPage { + id: iconsPage + } DragPage { id: dragPage } @@ -76,9 +79,6 @@ Item { id: buttonsPage } - IconsPage { - id: iconsPage - } PlasmoidPage { id: plasmoidPage