mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 09:18:27 +02:00
[ui] add MaterialToolButton
preset ToolButton with MaterialIcons font
This commit is contained in:
parent
713ca7c6a3
commit
9303fb7491
2 changed files with 16 additions and 0 deletions
15
meshroom/ui/qml/MaterialIcons/MaterialToolButton.qml
Normal file
15
meshroom/ui/qml/MaterialIcons/MaterialToolButton.qml
Normal file
|
@ -0,0 +1,15 @@
|
|||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
|
||||
/**
|
||||
* MaterialToolButton is a standard ToolButton using MaterialIcons font.
|
||||
* It also shows up its tooltip when hovered.
|
||||
*/
|
||||
ToolButton {
|
||||
font.family: MaterialIcons.fontFamily
|
||||
padding: 4
|
||||
font.pointSize: 13
|
||||
ToolTip.visible: ToolTip.text && hovered
|
||||
ToolTip.delay: 100
|
||||
}
|
|
@ -1,2 +1,3 @@
|
|||
module MaterialIcons
|
||||
singleton MaterialIcons 2.2 MaterialIcons.qml
|
||||
MaterialToolButton 2.2 MaterialToolButton.qml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue