Warning, /plasma/print-manager/src/kcm/ui/AddressExamples.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 SPDX-FileCopyrightText: 2023 Mike Noe <noeerover@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 import QtQuick 0007 import QtQuick.Controls as QQC2 0008 import org.kde.kirigami as Kirigami 0009 0010 QQC2.ScrollView { 0011 id: root 0012 signal selected(string address) 0013 0014 property var examples: [ 0015 "ipp://ip-addr/ipp/print", 0016 "ipp://ip-addr-or-hostname/printers/name", 0017 "ipps://ip-addr/ipp/print", 0018 "ipps://ip-addr-or-hostname/printers/name", 0019 "http://ip-addr-or-hostname:port-number/printers/name", 0020 "lpd://ip-addr/queue", 0021 "lpd://ip-addr/queue?format=l", 0022 "lpd://ip-addr/queue?format=l&reserve=rfc1179", 0023 "socket://ip-addr", 0024 "socket://ip-addr:port-number/?...", 0025 "socket://ip-addr/?contimeout=30", 0026 "socket://ip-addr/?waiteof=false", 0027 "socket://ip-addr/?contimeout=30&waiteof=false" 0028 ] 0029 0030 contentItem: ListView { 0031 clip: true 0032 model: examples 0033 0034 headerPositioning: ListView.OverlayHeader 0035 header: Kirigami.InlineViewHeader { 0036 text: i18nc("@info:usagetip", "Example Addresses") 0037 implicitWidth: ListView.view.width 0038 } 0039 0040 delegate: QQC2.ItemDelegate { 0041 implicitWidth: ListView.view.width 0042 text: modelData 0043 onClicked: root.selected(modelData) 0044 } 0045 } 0046 }