Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
659 B

7 years ago
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.Material 2.3
7 years ago
import de.skycoder42.QtMvvm.Quick 1.0
7 years ago
ToolButton {
id: _toolButton
property alias source: _tintIcon.source
property alias toolTip: _backToolTip.text
implicitHeight: 56.0
implicitWidth: 56.0
contentItem: TintIcon {
id: _tintIcon
implicitHeight: _toolButton.implicitHeight
implicitWidth: _toolButton.implicitWidth
}
ToolTip {
id: _backToolTip
Material.foreground: "#FFFFFF"
}
onPressAndHold: {
7 years ago
QuickPresenter.hapticLongPress();
7 years ago
_backToolTip.visible = true;
}
onCanceled: _backToolTip.visible = false
onReleased: _backToolTip.visible = false
}