aerothemeplasma/Plasma/Look_and_Feel/authui7/contents/components/GoButton.qml
2024-01-20 03:08:06 +01:00

25 lines
621 B
QML

/*
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.15
import org.kde.plasma.components 3.0 as PlasmaComponents3
Image {
id: root
property alias containsMouse: mouseArea.containsMouse
signal clicked
activeFocusOnTab: true
source: mouseArea.containsPress ? "../images/gopressed.png" : (activeFocus || containsMouse ? "../images/gohover.png" : "../images/go.png")
MouseArea {
id: mouseArea
hoverEnabled: true
onClicked: root.clicked()
anchors.fill: parent
}
}