Commit 9765dfa6 authored by Marco Martin's avatar Marco Martin

maximized widgets explorer

add applet with single click
parent 791d5c5f
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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();
}
}
}
......@@ -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
......
......@@ -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) {
......
Markdown is supported
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