Spracherkennung für: .qml vermutete Sprache: Abap {ABAP[44] Delphi[40] Masm[35]} [Methode: maximale Elemente, drei Dimensionen]
/*****************************************************************************
* Copyright (C) 2020 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ( at your option ) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
import QtQuick
import QtQuick.Templates as T
import VLC.Style
import VLC.Widgets as Widgets
T.Control {
id: root
// Properties
padding: VLCStyle.margin_normal
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
// Aliases
default property alias contents: column.data
property alias cover: cover.source
property alias coverWidth: cover.width
property alias coverHeight: cover.height
property alias text: label.text
property alias column: column
spacing: VLCStyle.margin_normal
enabled: visible
Accessible.role: Accessible.Pane
Accessible.name: qsTr("Empty view")
// Children
readonly property ColorContext colorContext: ColorContext {
id: theme
colorSet: ColorContext.View
}
contentItem: Column {
id: column
spacing: root.spacing
ScaledImage {
id: cover
anchors.horizontalCenter: parent.horizontalCenter
width: VLCStyle.colWidth(1)
height: VLCStyle.colWidth(1)
fillMode: Image.PreserveAspectFit
Widgets.DefaultShadow {
}
}
T.Label {
id: label
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors.horizontalCenter: parent.horizontalCenter
focus: false
color: theme.fg.primary
font.pixelSize: VLCStyle.fontSize_xxlarge
font.weight: Font.DemiBold
}
}
}
[Dauer der Verarbeitung: 0.7 Sekunden, vorverarbeitet 2026-10-24]