maximized widgets explorer

add applet with single click
This commit is contained in:
Marco Martin 2015-07-09 15:19:45 +02:00
parent 791d5c5f49
commit 9765dfa679
6 changed files with 9 additions and 8 deletions

View file

@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
X-Plasma-API=declarativeappletscript
X-KDE-Library=plasma_containment_phone_homescreen
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Category=Containments
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.homescreen

View file

@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
X-Plasma-API=declarativeappletscript
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Category=Containments
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.panel

View file

@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
X-Plasma-API=declarativeappletscript
X-KDE-Library=plasma_containment_phone_taskpanel
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Category=Containments
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.taskpanel

View file

@ -146,8 +146,9 @@ Item {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onDoubleClicked: widgetExplorer.addApplet(pluginName)
onEntered: delegate.ListView.view.currentIndex = index
onExited: delegate.ListView.view.currentIndex = -1
onClicked: {
widgetExplorer.addApplet(pluginName);
main.closed();
}
}
}

View file

@ -33,7 +33,7 @@ import org.kde.plasma.private.shell 2.0
PlasmaCore.FrameSvgItem {
id: main
imagePath: "widgets/background"
enabledBorders: PlasmaCore.FrameSvgItem.RightBorder
enabledBorders: PlasmaCore.FrameSvgItem.NoBorder
width: Math.max(heading.paintedWidth, units.gridUnit * 16)
height: 800//Screen.height

View file

@ -53,7 +53,7 @@ Item {
asynchronous: true
y: containment ? containment.availableScreenRect.y : 0
height: containment ? containment.availableScreenRect.height : parent.height
width: item ? item.width: 0
width: parent.width
onLoaded: {
if (widgetExplorerStack.item) {