Warning, /rolisteam/rolisteam/src/libraries/mindmap/resources/qml/IconButton.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import QtQuick.Controls 2.12 0003 0004 Button { 0005 id: root 0006 property alias source: img.source 0007 property string tooltip: root.action ? root.action.text : "" 0008 implicitHeight: 32 0009 implicitWidth: 32 0010 contentItem: Image { 0011 id: img 0012 source: root.action?.icon.source 0013 fillMode: Image.PreserveAspectFit 0014 sourceSize.height: 32 0015 sourceSize.width: 32 0016 opacity: root.enabled ? 1.0 : 0.2 0017 } 0018 hoverEnabled: true 0019 0020 ToolTip.delay: 1000 0021 ToolTip.timeout: 5000 0022 ToolTip.visible: hovered 0023 ToolTip.text: root.tooltip 0024 display: AbstractButton.IconOnly 0025 }