QtMvvm  1.1.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
DecorLabel.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import de.skycoder42.QtMvvm.Quick 1.1
4 
15 Label {
16  id: _decorLabel
17 
18  ColorHelper {
19  id: helper
20  }
21 
33  property Item edit: _decorLabel.nextItemInFocusChain()
34 
45  readonly property bool editHasFocus: edit && edit.focus
46 
47  color: editHasFocus ? helper.highlight : helper.text
48  opacity: editHasFocus ? 1 : 0.5
49 }
color highlight
The color to use to highlight stuff.
Definition: ColorHelper.qml:35
A helper class to get style-dependant colors.
Definition: ColorHelper.qml:17
The QML import for the QtMvvmQuick QML module.
Definition: ActionButton.qml:4