Warning, /system/apper/plasmoid/package/contents/ui/CompactRepresentation.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * Copyright 2013 Daniel Nicoletti <dantti12@gmail.com>
0003 *
0004 * This program is free software; you can redistribute it and/or modify
0005 * it under the terms of the GNU Library General Public License as
0006 * published by the Free Software Foundation; either version 2 or
0007 * (at your option) any later version.
0008 *
0009 * This program is distributed in the hope that it will be useful,
0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0012 * GNU General Public License for more details
0013 *
0014 * You should have received a copy of the GNU Library General Public
0015 * License along with this program; if not, write to the
0016 * Free Software Foundation, Inc.,
0017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018 */
0019
0020 import QtQuick 1.1
0021 import org.kde.qtextracomponents 0.1
0022 import org.kde.plasma.core 0.1 as PlasmaCore
0023
0024 Item {
0025 id: panelIconWidget;
0026
0027 property alias text: tooltip.subText
0028 property alias icon: connectionIcon.elementId
0029
0030 PlasmaCore.SvgItem {
0031 id: connectionIcon
0032 anchors.fill: parent
0033 svg: PlasmaCore.Svg {
0034 imagePath: "icons/kpackagekit"
0035 }
0036 }
0037
0038 MouseArea {
0039 id: mouseAreaPopup
0040
0041 anchors.fill: parent
0042 hoverEnabled: true
0043 onClicked: plasmoid.togglePopup()
0044
0045 PlasmaCore.ToolTip {
0046 id: tooltip
0047 target: mouseAreaPopup
0048 image: QIcon("system-software-update")
0049 }
0050 }
0051 }