Files
pallectrum/electrum/gui/qml/components/controls/HelpButton.qml

21 lines
450 B
QML
Raw Normal View History

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import QtQuick.Controls.Material
ToolButton {
id: root
property string heading
property string helptext
icon.source: Qt.resolvedUrl('../../../icons/info.png')
icon.color: 'transparent'
onClicked: {
var dialog = app.helpDialog.createObject(app, {
heading: root.heading,
text: root.helptext
})
dialog.open()
}
}