Warning, /education/marble/src/apps/marble-maps/FloatingMenuButton.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2015 Gábor Péterffy <peterffy95@gmail.com> 0004 // 0005 0006 import QtQuick 2.3 0007 import QtQuick.Window 2.2 0008 0009 Item { 0010 id: root 0011 0012 property alias imageSource: image.source 0013 signal clicked(); 0014 0015 width: Screen.pixelDensity * 9 0016 height: Screen.pixelDensity * 9 0017 0018 SystemPalette{ 0019 id: palette 0020 colorGroup: SystemPalette.Active 0021 } 0022 0023 Rectangle{ 0024 id: background 0025 radius: 0.5 * root.height 0026 anchors.fill: parent 0027 color: touchArea.pressed ? palette.highlight : palette.base 0028 Image { 0029 id: image 0030 anchors { 0031 fill: parent 0032 margins: parent.height * 0.2 0033 } 0034 } 0035 } 0036 0037 MouseArea{ 0038 id: touchArea 0039 anchors.fill: parent 0040 onClicked: root.clicked() 0041 } 0042 }