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-Plasma-API=declarativeappletscript
X-KDE-Library=plasma_containment_phone_homescreen X-KDE-Library=plasma_containment_phone_homescreen
X-KDE-PluginInfo-Author=Marco Martin 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-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+ X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.homescreen 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-Plasma-API=declarativeappletscript
X-KDE-ParentApp= X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Marco Martin 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-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+ X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.panel 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-Plasma-API=declarativeappletscript
X-KDE-Library=plasma_containment_phone_taskpanel X-KDE-Library=plasma_containment_phone_taskpanel
X-KDE-PluginInfo-Author=Marco Martin 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-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+ X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.phone.taskpanel X-KDE-PluginInfo-Name=org.kde.phone.taskpanel

View file

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

View file

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

View file

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