plasma-framework/tests/tooltip-icons.qml

33 lines
665 B
QML
Raw Normal View History

/*
SPDX-FileCopyrightText: 2014 Bhushan Shah <bhush94@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Row {
height: 200
width: 400
PlasmaCore.IconItem {
source: "plasma"
PlasmaCore.ToolTipArea {
anchors.fill: parent
mainText: "Tooltip Title"
subText: "Some explanation."
icon: "plasma"
}
}
PlasmaCore.IconItem {
source: "ark"
PlasmaCore.ToolTipArea {
anchors.fill: parent
mainText: "Tooltip title"
subText: "No icon!"
}
}
}