summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2016-09-22 07:25:28 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2016-09-22 07:25:28 (GMT)
commit2da2d251e26be335afd4df1877aaf503c24518dd (patch)
treea296a216c6f29646c6490a06b3f3acd918a4727c
parent03cca31b21122673e9bd11428949075fa342d3a8 (diff)
[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
-rw-r--r--contactlist/org.kde.ktp-contactlist/contents/ui/Presence.qml34
-rw-r--r--contactlist/org.kde.ktp-contactlist/contents/ui/main.qml4
2 files changed, 1 insertions, 37 deletions
diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/Presence.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/Presence.qml
deleted file mode 100644
index 575d97f..0000000
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/Presence.qml
+++ /dev/null
@@ -1,34 +0,0 @@
-/***************************************************************************
- * 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
- }
-}
diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
index 43b8c8e..cc4a7ba 100644
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
+++ b/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
@@ -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 {