Commit 2da2d251 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Contact List Applet] Drop custom compact representation

All it did was show an icon with a MouseArea, we can just set the plasmoid.icon instead

REVIEW: 128976
parent 03cca31b
/***************************************************************************
* Copyright (C) 2014 by Aleix Pol Gonzalez <aleixpol@kde.org> *
* *
* 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, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
import QtQuick 2.0
import org.kde.kquickcontrolsaddons 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.telepathy 0.1
PlasmaCore.IconItem
{
id: panelIconWidget
MouseArea {
anchors.fill: parent
onClicked: plasmoid.expanded = !plasmoid.expanded
}
}
......@@ -30,10 +30,8 @@ Item
Plasmoid.switchHeight: 300
Plasmoid.fullRepresentation: ContactList {}
Plasmoid.compactRepresentation: Presence {
source: ktpPresence.currentPresenceIconName
}
Plasmoid.icon: ktpPresence.currentPresenceIconName
Plasmoid.busy: ktpPresence.isChangingPresence
KTp.PresenceModel {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment