Spracherkennung für: .qml vermutete Sprache: Abap {ABAP[44] Cobol[40] SPS[40]} [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 QtQml.Models
import QtQml
import VLC.MainInterface
import VLC.Widgets as Widgets
import VLC.Util
import VLC.Style
import VLC.Network
Widgets.PageLoader {
id: root
pageModel: [{
displayText: qsTr("Services"),
default: true,
name: "services",
url: "qrc:///qt/qml/VLC/Network/ServicesHomeDisplay.qml"
}, {
displayText: qsTr("URL"),
name: "url",
url: "qrc:///qt/qml/VLC/Network/DiscoverUrlDisplay.qml"
}
]
property int displayMarginBeginning: 0
property int displayMarginEnd: 0
property bool enableBeginningFade: true
property bool enableEndFade: true
Accessible.role: Accessible.Client
Accessible.name: qsTr("Discover view")
onCurrentItemChanged: {
if (currentItem) {
if (currentItem.displayMarginBeginning !== undefined)
currentItem.displayMarginBeginning = Qt.binding(() => { return root.displayMarginBeginning })
if (currentItem.displayMarginEnd !== undefined)
currentItem.displayMarginEnd = Qt.binding(() => { return root.displayMarginEnd })
if (currentItem.enableBeginningFade !== undefined)
currentItem.enableBeginningFade = Qt.binding(() => { return root.enableBeginningFade })
if (currentItem.enableEndFade !== undefined)
currentItem.enableEndFade = Qt.binding(() => { return root.enableEndFade })
}
}
function loadIndex(index) {
const pageName = root.pageModel[index].name
if (root.isDefaulLoadedForPath([pageName]))
return
History.push([...root.pagePrefix, pageName])
}
}
[Dauer der Verarbeitung: 0.2 Sekunden, vorverarbeitet 2026-10-24]