58 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			QML
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			QML
		
	
	
	
	
	
| import QtQuick 2.0
 | |
| import QtQuick.Layouts 1.3
 | |
| import org.kde.plasma.core 2.0 as PlasmaCore
 | |
| import org.kde.plasma.components 2.0 as PlasmaComponents
 | |
| import QtQuick.Controls 2.5 as QQC2
 | |
| import org.kde.kirigami 2.4 as Kirigami
 | |
| import org.kde.kquickcontrols 2.0 as KQControls
 | |
| 
 | |
| import "../lib/helper.js" as Helper
 | |
| 
 | |
| QQC2.Pane {
 | |
|   id: root
 | |
| 
 | |
|   property alias cfg_debug_active: debug_active.checked
 | |
|   property alias cfg_debug_charge: debug_charge.value
 | |
| 
 | |
|   Kirigami.FormLayout {
 | |
|     anchors.fill: parent
 | |
|     wideMode: false
 | |
| 
 | |
|     GridLayout {
 | |
|       columns: 3
 | |
|       rows: 2
 | |
|       rowSpacing: 10
 | |
| 
 | |
|       // first row
 | |
|       Text {
 | |
|         text: "debug:"
 | |
|         color: PlasmaCore.Theme.textColor
 | |
|       }
 | |
|       PlasmaComponents.CheckBox {
 | |
|         id: debug_active
 | |
|       }
 | |
|       Text {
 | |
|         text: ""
 | |
|       }
 | |
| 
 | |
|       // second row
 | |
|       Text {
 | |
|         text: "battery charge:"
 | |
|         color: PlasmaCore.Theme.textColor
 | |
|       }
 | |
|       PlasmaComponents.Slider {
 | |
|         id: debug_charge
 | |
|         value: 0
 | |
|         minimumValue: -2
 | |
|         maximumValue: 100
 | |
|         stepSize: 1
 | |
|       }
 | |
|       Text {
 | |
|         text: cfg_debug_charge + "%"
 | |
|         color: PlasmaCore.Theme.textColor
 | |
|       }
 | |
|     }
 | |
| 
 | |
|   }
 | |
| }
 |