Warning, /frameworks/purpose/src/plugins/youtube/youtubeplugin_config.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 import QtQuick 2.2 0008 import QtQuick.Controls 2.15 0009 import QtQuick.Layouts 1.1 0010 import org.kde.kcmutils as KCMUtils 0011 import SSO.OnlineAccounts 0.1 as OA 0012 0013 ColumnLayout 0014 { 0015 id: root 0016 0017 property alias videoDesc: description.text 0018 property alias videoTitle: title.text 0019 property alias videoTags: tags.text 0020 property var accountId 0021 property var urls 0022 property var mimeType 0023 0024 function accountChanged() 0025 { 0026 var valid = accountsCombo.enabled && accountsCombo.currentIndex>=0; 0027 accountId = valid ? serviceModel.get(accountsCombo.currentIndex, "accountId") : null 0028 } 0029 0030 Label { text: i18nd("purpose6_youtube", "Account:") } 0031 RowLayout { 0032 Layout.fillWidth: true 0033 ComboBox { 0034 id: accountsCombo 0035 0036 Layout.fillWidth: true 0037 textRole: "displayName" 0038 enabled: count>0 0039 model: OA.AccountServiceModel { 0040 id: serviceModel 0041 serviceType: "google-youtube" 0042 } 0043 onCurrentIndexChanged: root.accountChanged() 0044 Component.onCompleted: root.accountChanged() 0045 } 0046 Button { 0047 icon.name: "settings-configure" 0048 onClicked: KCMUtils.KCMLauncher.openSystemSettings("kcm_kaccounts"); 0049 } 0050 } 0051 0052 Label { text: i18nd("purpose6_youtube", "Title:") } 0053 TextField { 0054 id: title 0055 Layout.fillWidth: true 0056 placeholderText: i18nd("purpose6_youtube", "Enter a title for the video...") 0057 } 0058 0059 Label { text: i18nd("purpose6_youtube", "Tags:") } 0060 TextField { 0061 id: tags 0062 Layout.fillWidth: true 0063 placeholderText: i18nd("purpose6_youtube", "KDE, Kamoso") 0064 } 0065 0066 Label { text: i18nd("purpose6_youtube", "Description:") } 0067 TextArea { 0068 id: description 0069 wrapMode: TextEdit.Wrap 0070 Layout.fillWidth: true 0071 Layout.fillHeight: true 0072 } 0073 }