Warning, /multimedia/amarok/src/context/applets/currenttrack/package/contents/ui/InfoItem.qml is written in an unsupported language. File is not indexed.

0001 /****************************************************************************************
0002  * Copyright (c) 2017 Malte Veerman <malte.veerman@gmail.com>                           *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 import QtQuick 2.4
0018 import QtQuick.Controls 2.0
0019 import QtQuick.Layouts 1.3
0020 import org.kde.kirigami 2.0 as Kirigami
0021 import org.kde.amarok.currenttrack 1.0
0022 
0023 ColumnLayout {
0024     id: root
0025 
0026     property alias title: titleLabel.text
0027     property alias album: albumLabel.text
0028     property alias artist: artistLabel.text
0029 
0030     spacing: Kirigami.Units.smallSpacing
0031 
0032     Label {
0033         id: titleLabel
0034 
0035         text: CurrentTrackEngine.track
0036 
0037         Layout.fillHeight: true
0038         Layout.fillWidth: true
0039 
0040         horizontalAlignment: Text.AlignLeft
0041         verticalAlignment: Text.AlignVCenter
0042         maximumLineCount: 1
0043         fontSizeMode: Text.Fit
0044         font.pointSize: 32
0045         minimumPointSize: 12
0046         elide: Text.ElideRight
0047     }
0048     Label {
0049         id: artistLabel
0050 
0051         text: CurrentTrackEngine.artist
0052 
0053         Layout.fillHeight: true
0054         Layout.fillWidth: true
0055 
0056         horizontalAlignment: Text.AlignLeft
0057         verticalAlignment: Text.AlignVCenter
0058         maximumLineCount: 1
0059         fontSizeMode: Text.Fit
0060         font.pointSize: 32
0061         minimumPointSize: 12
0062         elide: Text.ElideRight
0063     }
0064     Label {
0065         id: albumLabel
0066 
0067         text: CurrentTrackEngine.album
0068 
0069         Layout.fillHeight: true
0070         Layout.fillWidth: true
0071 
0072         horizontalAlignment: Text.AlignLeft
0073         verticalAlignment: Text.AlignVCenter
0074         maximumLineCount: 1
0075         fontSizeMode: Text.Fit
0076         font.pointSize: 32
0077         minimumPointSize: 12
0078         elide: Text.ElideRight
0079     }
0080 }