mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 09:39:57 +00:00
port widget to dbus
This commit is contained in:
@ -15,8 +15,8 @@
|
||||
* 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
|
||||
|
||||
|
||||
Row {
|
||||
@ -32,14 +32,14 @@ Row {
|
||||
|
||||
signal valueEdited(string newValue)
|
||||
|
||||
QtControls.Label {
|
||||
Label {
|
||||
id: label
|
||||
height: parent.height
|
||||
width: parent.width * 2 / 5
|
||||
horizontalAlignment: Text.AlignRight
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
QtControls.ComboBox {
|
||||
ComboBox {
|
||||
id: comboBox
|
||||
width: parent.width * 3 / 5
|
||||
textRole: 'label'
|
||||
@ -47,7 +47,7 @@ Row {
|
||||
Component.onCompleted: {
|
||||
var total = comboBox.model.length
|
||||
for (var i = 0; i < total; i++) {
|
||||
if (comboBox.model[i]["name"] == value)
|
||||
if (comboBox.model[i]["name"] === value)
|
||||
comboBox.currentIndex = i
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user