Warning, /education/marble/src/apps/marble-maps/RouteProfileRadioButton.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 Dennis Nienhüser <nienhueser@kde.org> 0004 // 0005 0006 import QtQuick 2.4 0007 import QtQuick.Controls 1.3 0008 import QtQuick.Controls.Styles 1.3 0009 import QtQuick.Window 2.2 0010 0011 RadioButton { 0012 id: root 0013 property string imageSource 0014 0015 SystemPalette{ 0016 id: palette 0017 colorGroup: SystemPalette.Active 0018 } 0019 0020 style: RadioButtonStyle { 0021 indicator: Rectangle { 0022 color: control.checked ? palette.highlight : palette.base 0023 width: image.width 0024 height: image.height + Screen.pixelDensity * 1 0025 radius: Screen.pixelDensity * 1 0026 0027 Image { 0028 anchors.centerIn: parent 0029 id: image 0030 sourceSize.height: Screen.pixelDensity * 5 0031 fillMode: Image.PreserveAspectFit 0032 source: root.imageSource 0033 } 0034 } 0035 } 0036 }