[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: [plasma-framework] tests: Add icons and images to the tooltip test
From: Aleix Pol <aleixpol () kde ! org>
Date: 2015-02-25 11:48:24
Message-ID: CACcA1Rr=K-=MuxYAxQ_N=Fi+dXuQx1TXDbK8YPyH-FbD1i7Rhg () mail ! gmail ! com
[Download RAW message or body]
You set an absolute path... This is not good.
On Wed, Feb 25, 2015 at 11:24 AM, David Edmundson
<kde@davidedmundson.co.uk> wrote:
> Git commit 8022adb3991ad65cc2e88be72ed2ac4aadfe57ac by David Edmundson.
> Committed on 25/02/2015 at 10:23.
> Pushed by davidedmundson into branch 'master'.
>
> Add icons and images to the tooltip test
>
> Change-Id: Idbcac97bb3e5b8e2349d384c94734a312f177954
>
> M +38 -0 tests/tooltip.qml
>
> http://commits.kde.org/plasma-framework/8022adb3991ad65cc2e88be72ed2ac4aadfe57ac
>
> diff --git a/tests/tooltip.qml b/tests/tooltip.qml
> index 485fb5d..86703b4 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"
> + }
> + }
> +
> }
> }
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic