From 8022adb3991ad65cc2e88be72ed2ac4aadfe57ac Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 25 Feb 2015 11:23:40 +0100 Subject: [PATCH] Add icons and images to the tooltip test Change-Id: Idbcac97bb3e5b8e2349d384c94734a312f177954 --- tests/tooltip.qml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/tooltip.qml b/tests/tooltip.qml index 485fb5ddf..86703b476 100644 --- a/tests/tooltip.qml +++ b/tests/tooltip.qml @@ -85,6 +85,44 @@ Rectangle { } } + PlasmaCore.ToolTipArea { + width: 300 + height: 50 + + icon: "document-edit" + mainText: "A title" + subText: "A subtext" + + Rectangle { + color: "red" + anchors.fill: parent + } + + Text { + anchors.fill: parent + text: "with icon" + } + } + + PlasmaCore.ToolTipArea { + width: 300 + height: 50 + + image: "/usr/share/icons/oxygen/128x128/devices/multimedia-player.png" + mainText: "A title" + subText: "A subtext" + + Rectangle { + color: "red" + anchors.fill: parent + } + + Text { + anchors.fill: parent + text: "with image" + } + } + } }