Warning, /education/marble/src/apps/marble-maps/FlatButton.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.3 0007 import QtQuick.Controls 1.3 0008 import QtQuick.Controls.Styles 1.3 0009 0010 Button { 0011 id: root 0012 0013 property string imageSource 0014 0015 SystemPalette{ 0016 id: palette 0017 colorGroup: SystemPalette.Active 0018 } 0019 0020 style: ButtonStyle { 0021 background: Item { 0022 anchors.fill: parent 0023 Image { 0024 id: icon 0025 anchors.fill: parent 0026 source: root.imageSource 0027 smooth: true 0028 sourceSize.width: width 0029 sourceSize.height: height 0030 } 0031 } 0032 } 0033 }