Warning, /plasma/lightdm-kde-greeter/themes/classic/contents/ui/IconButton.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 This file is part of LightDM-KDE.
0003
0004 Copyright 2011, 2012 David Edmundson <kde@davidedmundson.co.uk>
0005
0006 LightDM-KDE is free software: you can redistribute it and/or modify
0007 it under the terms of the GNU General Public License as published by
0008 the Free Software Foundation, either version 3 of the License, or
0009 (at your option) any later version.
0010
0011 LightDM-KDE is distributed in the hope that it will be useful,
0012 but WITHOUT ANY WARRANTY; without even the implied warranty of
0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0014 GNU General Public License for more details.
0015
0016 You should have received a copy of the GNU General Public License
0017 along with LightDM-KDE. If not, see <http://www.gnu.org/licenses/>.
0018 */
0019
0020 import QtQuick 1.0
0021 import org.kde.qtextracomponents 0.1 as ExtraComponents
0022
0023 ExtraComponents.QIconItem {
0024 id: base
0025 signal clicked
0026
0027 width: 16
0028 height: 16
0029
0030 state: mousearea.containsMouse ? ExtraComponents.QIconItem.ActiveState : ExtraComponents.QIconItem.DefaultState
0031
0032 MouseArea {
0033 id: mousearea
0034 anchors.fill: parent
0035 onClicked: base.clicked()
0036 hoverEnabled: true
0037 }
0038 }