Commit 23c4e82c authored by Luca Carlon's avatar Luca Carlon Committed by Nate Graham
Browse files

Make widget popups resizable

See the discussion in frameworks/plasma-framework!500.

BUG: 411462
BUG: 332512
parent 38bf92fc
Pipeline #181637 passed with stage
in 5 minutes and 54 seconds
......@@ -13,6 +13,7 @@ import QtQuick 2.15
import QtQuick.Templates 2.15 as T
import QtQuick.Layouts 1.15
import QtQml 2.15
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.private.kicker 0.1 as Kicker
......@@ -24,9 +25,12 @@ EmptyPage {
rightPadding: -plasmoid.rootItem.backgroundMetrics.rightPadding
topPadding: 0
bottomPadding: -plasmoid.rootItem.backgroundMetrics.bottomPadding
readonly property var appletInterface: plasmoid.self
Layout.minimumWidth: implicitWidth
Layout.maximumWidth: PlasmaCore.Units.gridUnit * 80
Layout.minimumHeight: implicitHeight
Layout.maximumHeight: PlasmaCore.Units.gridUnit * 40
/* NOTE: Important things to know about keyboard input handling:
*
......
......@@ -206,6 +206,12 @@ PlasmaCore.ToolTipArea {
backgroundHints: (plasmoid.containmentDisplayHints & PlasmaCore.Types.DesktopFullyCovered) ? PlasmaCore.Dialog.SolidBackground : PlasmaCore.Dialog.StandardBackground
property var oldStatus: PlasmaCore.Types.UnknownStatus
appletInterface: {
if (!fullRepresentation || !fullRepresentation.appletInterface)
return null
return fullRepresentation.appletInterface
}
type: PlasmaCore.Dialog.AppletPopup
//It's a MouseEventListener to get all the events, so the eventfilter will be able to catch them
mainItem: MouseEventListener {
......
Supports Markdown
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