mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
initial plasma6 support
This commit is contained in:
@ -15,25 +15,15 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 1.3 as QtControls
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls
|
||||
import org.kde.kcmutils as KCM
|
||||
|
||||
import org.kde.plasma.private.desktoppanel 1.0
|
||||
|
||||
|
||||
Item {
|
||||
KCM.SimpleKCM {
|
||||
id: advancedPage
|
||||
// backend
|
||||
DPAdds {
|
||||
id: dpAdds
|
||||
}
|
||||
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
implicitWidth: pageColumn.implicitWidth
|
||||
implicitHeight: pageColumn.implicitHeight
|
||||
|
||||
property bool debug: dpAdds.isDebugEnabled()
|
||||
|
||||
property alias cfg_background: background.checked
|
||||
property alias cfg_verticalLayout: verticalLayout.checked
|
||||
@ -44,7 +34,6 @@ Item {
|
||||
property alias cfg_tooltipWidth: tooltipWidth.value
|
||||
property alias cfg_tooltipColor: tooltipColor.value
|
||||
|
||||
|
||||
Column {
|
||||
id: pageColumn
|
||||
anchors.fill: parent
|
||||
@ -82,48 +71,48 @@ Item {
|
||||
editable: true
|
||||
model: [
|
||||
{
|
||||
'label': '#',
|
||||
'name': '#'
|
||||
"label": "#",
|
||||
"name": "#"
|
||||
},
|
||||
{
|
||||
'label': '$',
|
||||
'name': '$'
|
||||
"label": "$",
|
||||
"name": "$"
|
||||
},
|
||||
{
|
||||
'label': '%',
|
||||
'name': '%'
|
||||
"label": "%",
|
||||
"name": "%"
|
||||
},
|
||||
{
|
||||
'label': '&',
|
||||
'name': '&'
|
||||
"label": "&",
|
||||
"name": "&"
|
||||
},
|
||||
{
|
||||
'label': '*',
|
||||
'name': '*'
|
||||
"label": "*",
|
||||
"name": "*"
|
||||
},
|
||||
{
|
||||
'label': '@',
|
||||
'name': '@'
|
||||
"label": "@",
|
||||
"name": "@"
|
||||
},
|
||||
{
|
||||
'label': '¤',
|
||||
'name': '¤'
|
||||
"label": "¤",
|
||||
"name": "¤"
|
||||
},
|
||||
{
|
||||
'label': '¶',
|
||||
'name': '¶'
|
||||
"label": "¶",
|
||||
"name": "¶"
|
||||
},
|
||||
{
|
||||
'label': '·',
|
||||
'name': '·'
|
||||
"label": "·",
|
||||
"name": "·"
|
||||
},
|
||||
{
|
||||
'label': 'º',
|
||||
'name': 'º'
|
||||
"label": "º",
|
||||
"name": "º"
|
||||
},
|
||||
{
|
||||
'label': plasmoid.configuration.mark,
|
||||
'name': plasmoid.configuration.mark
|
||||
"label": plasmoid.configuration.mark,
|
||||
"name": plasmoid.configuration.mark
|
||||
}
|
||||
]
|
||||
text: i18n("Mark")
|
||||
@ -131,7 +120,7 @@ Item {
|
||||
onValueEdited: cfg_mark = newValue
|
||||
}
|
||||
|
||||
QtControls.GroupBox {
|
||||
GroupBox {
|
||||
height: implicitHeight
|
||||
width: parent.width
|
||||
title: i18n("Tooltip")
|
||||
@ -144,16 +133,16 @@ Item {
|
||||
id: tooltipType
|
||||
model: [
|
||||
{
|
||||
'label': i18n("contours"),
|
||||
'name': "contours"
|
||||
"label": i18n("contours"),
|
||||
"name": "contours"
|
||||
},
|
||||
{
|
||||
'label': i18n("names"),
|
||||
'name': "names"
|
||||
"label": i18n("names"),
|
||||
"name": "names"
|
||||
},
|
||||
{
|
||||
'label': i18n("none"),
|
||||
'name': "none"
|
||||
"label": i18n("none"),
|
||||
"name": "none"
|
||||
}
|
||||
]
|
||||
text: i18n("Tooltip type")
|
||||
@ -178,8 +167,4 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (debug) console.debug()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user