Warning, /graphics/kphotoalbum/AndroidRemoteControl/qml/Icon.qml is written in an unsupported language. File is not indexed.

0001 /* SPDX-FileCopyrightText: 2014 Jesper K. Pedersen <blackie@kde.org>
0002 
0003    SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.0
0007 import KPhotoAlbum 1.0
0008 
0009 Item {
0010     id: root
0011     property string text
0012     property variant icon
0013     property double iconScale
0014     signal clicked()
0015 
0016     height: column.height
0017 
0018     Column {
0019         id: column
0020         anchors {left: parent.left; right: parent.right}
0021         spacing: 10 // Value used in ScreenInfo::iconHeight, so update there too if changing the value.
0022         MyImage {
0023             image: root.icon
0024             scale: iconScale
0025             width: imageWidth * scale
0026             height: imageHeight * scale
0027             transformOrigin: Item.TopLeft
0028             anchors.horizontalCenter: parent.horizontalCenter
0029         }
0030         Text {
0031             text: root.text
0032             color: _settings.textColor
0033             clip: true
0034             anchors { left: parent.left; right: parent.right }
0035             horizontalAlignment: Text.AlignHCenter
0036         }
0037     }
0038     MouseArea {
0039         anchors.fill: parent
0040         onClicked: root.clicked()
0041     }
0042 }