Commit d97ea9fb authored by Harald Sitter's avatar Harald Sitter

turn properties into checkboxes

properties are hints for os-autoinst, so they need code backing and you
cannot define arbitrary properties (not right now anyway).
so instead checkbox the properties.
there's only 'workaround' for now, it marks tests as worked around to
record that a needle wasn't quite right
parent 92e81c43
Copyright © 2018 Harald Sitter <>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your option) version 3 or any later version
accepted by the membership of KDE e.V. (or its successor approved
by the membership of KDE e.V.), which shall act as a proxy
defined in Section 14 of version 3 of the license.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <>.
import QtQuick 2.0
import QtQuick.Controls 2.2
CheckBox {
property string key
property variant model
text: key
onModelChanged: checked = model.indexOf(key) !== -1
onCheckedChanged: {
if (checked && model.indexOf(key) === -1) {
} else {
model.splice(model.indexOf(key), 1)
......@@ -109,16 +109,12 @@ ApplicationWindow {
ColumnLayout {
Layout.margins: fontMetrics.height / 4
// TODO: I do not know how properties work, they maybe should be
// presented like tags - sitter
Label { text: "Properties" }
TextArea {
placeholderText: "..."
// wrapMode: TextEdit.Wrap
// FIXME: these are binding loops
// would need async timer or something
onTextChanged: { = text.split(',') }
ColumnLayout {
PropertyCheckBox {
key: 'workaround'
Label { text: "Tags" }
......@@ -5,5 +5,6 @@
Markdown is supported
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