use new expanded api
This commit is contained in:
parent
1e3b4626e9
commit
bc47ac3c42
4 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
kpackage_install_package(package org.kde.kdeconnect plasmoids plasma NO_DEPRECATED_WARNING)
|
||||
|
||||
install(FILES package/metadata.desktop
|
||||
DESTINATION ${KDE_INSTALL_KSERVICESDIR}
|
||||
RENAME plasma-kdeconnect.desktop)
|
||||
#install(FILES package/metadata.desktop
|
||||
# DESTINATION ${KDE_INSTALL_KSERVICESDIR}
|
||||
#RENAME plasma-kdeconnect.desktop)
|
||||
|
|
|
@ -24,9 +24,13 @@ DropArea {
|
|||
MouseArea {
|
||||
id: kdeConnectMouseArea
|
||||
anchors.fill: parent
|
||||
property bool wasExpanded
|
||||
|
||||
onPressed: {
|
||||
wasExpanded = root.expanded;
|
||||
}
|
||||
onClicked: {
|
||||
plasmoid.expanded = !plasmoid.expanded;
|
||||
root.expanded = !wasExpanded;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.kde.kdeconnect 1.0
|
|||
|
||||
PlasmoidItem
|
||||
{
|
||||
id: root
|
||||
DevicesModel {
|
||||
id: connectDeviceModel
|
||||
displayFilter: DevicesModel.Paired | DevicesModel.Reachable
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"KPackageStructure": "Plasma/Applet",
|
||||
"KPlugin": {
|
||||
"Authors": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue