* move isDebugEnabled method to AWActions

* add "Drop key cache" button
This commit is contained in:
arcan1s
2015-07-21 00:24:50 +03:00
parent 1110929b14
commit a065e96bc3
22 changed files with 1930 additions and 1881 deletions

View File

@ -24,8 +24,8 @@ import org.kde.plasma.private.awesomewidget 1.0
Item {
id: advancedPage
// backend
AWKeys {
id: awKeys;
AWActions {
id: awActions;
}
width: childrenRect.width
@ -33,7 +33,7 @@ Item {
implicitWidth: pageColumn.implicitWidth
implicitHeight: pageColumn.implicitHeight
property bool debug: awKeys.isDebugEnabled()
property bool debug: awActions.isDebugEnabled()
property alias cfg_height: widgetHeight.value
property alias cfg_width: widgetWidth.value
@ -254,6 +254,24 @@ Item {
text: plasmoid.configuration.acOffline
}
}
Row {
height: implicitHeight
width: parent.width
QtControls.Label {
height: parent.height
width: parent.width * 2 / 5
// horizontalAlignment: Text.AlignRight
// verticalAlignment: Text.AlignVCenter
// text: i18n("Font")
}
QtControls.Button {
id: selectFont
width: parent.width * 3 / 5
text: i18n("Drop key cache")
onClicked: awActions.dropCache()
}
}
}
Component.onCompleted: {