move stuff into components
This commit is contained in:
parent
6370732e4e
commit
14292e6683
17 changed files with 81 additions and 149 deletions
|
|
@ -1,12 +1,20 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
Text {
|
||||
property string icon: ""
|
||||
property string tooltip: ""
|
||||
|
||||
text: icon
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize + 1
|
||||
font.family: M.Theme.iconFontFamily
|
||||
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