/** Copyright 2013 Heena Mahour <heena393@gmail.com>** This program is free software; you can redistribute it and/or* modify it under the terms of the GNU General Public License as* published by the Free Software Foundation; either version 2 of* the License, or (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program. If not, see <http://www.gnu.org/licenses/>.*/import QtQuick 2.0import org.kde.plasma.components 2.0 as PlasmaComponentsimport org.kde.kquickcontrolsaddons 2.0import org.kde.plasma.core 2.0 as PlasmaCoreItem {id: menuItemwidth: parent.widthheight: Math.max(iconItem.height, label.height) + highlightItem.marginHints.top + highlightItem.marginHints.bottomsignal clicked()signal entered()signal executeJob(string jobName)signal setOnDesktop(int desktop)property alias nameLabel: label.textproperty int desktopproperty alias icon: iconItem.sourceproperty alias label: label.textproperty bool active: falseproperty int iconSize: units.iconSizes.smallproperty bool showDesktop: trueproperty variant desktopItems: []PlasmaCore.IconItem {id: iconItemwidth: menuItem.iconSizeheight: widthanchors {verticalCenter: parent.verticalCenterleft: parent.leftleftMargin: highlightItem.marginHints.left}}PlasmaComponents.Label {id: labelheight: implicitHeightanchors {left: iconItem.rightleftMargin: highlightItem.marginHints.leftright: parent.rightverticalCenter: parent.verticalCenter}font.italic: (minimized == true) ? true : falseelide: Text.ElideRight}MouseArea {id:root_itemanchors.fill: parenthoverEnabled: trueonClicked: {menuItem.clicked();}onEntered:{highlightItem.trackingItem = menuItemhighlightItem.width = menuItem.widthhighlightItem.height = menuItem.heightmenuItem.entered();highlight = true}onExited: {highlight = false}}}