move stuff into components
This commit is contained in:
parent
14292e6683
commit
186c9a3aa2
3 changed files with 26 additions and 21 deletions
|
|
@ -1,12 +1,20 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
Text {
|
||||
property string label: ""
|
||||
property string tooltip: ""
|
||||
|
||||
text: label
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
HoverHandler { id: _hover }
|
||||
ToolTip {
|
||||
visible: _hover.hovered && parent.tooltip !== ""
|
||||
text: parent.tooltip
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue