Purpose
8import QtQuick.Controls 2.15
9import QtQuick.Layouts 1.1
10import org.kde.kcmutils as KCMUtils
11import SSO.OnlineAccounts 0.1 as OA
17 property alias videoDesc: description.text
18 property alias videoTitle: title.text
19 property alias videoTags: tags.text
20 property var accountId
24 function accountChanged()
26 var valid = accountsCombo.enabled && accountsCombo.currentIndex>=0;
27 accountId = valid ? serviceModel.get(accountsCombo.currentIndex,
"accountId") : null
30 Label { text:
i18nd(
"purpose6_youtube",
"Account:") }
32 Layout.fillWidth:
true
36 Layout.fillWidth:
true
37 textRole:
"displayName"
39 model: OA.AccountServiceModel {
41 serviceType:
"google-youtube"
43 onCurrentIndexChanged: root.accountChanged()
44 Component.onCompleted: root.accountChanged()
47 icon.name:
"settings-configure"
48 onClicked: KCMUtils.KCMLauncher.openSystemSettings(
"kcm_kaccounts");
52 Label { text:
i18nd(
"purpose6_youtube",
"Title:") }
55 Layout.fillWidth:
true
56 placeholderText:
i18nd(
"purpose6_youtube",
"Enter a title for the video...")
59 Label { text:
i18nd(
"purpose6_youtube",
"Tags:") }
62 Layout.fillWidth:
true
63 placeholderText:
i18nd(
"purpose6_youtube",
"KDE, Kamoso")
66 Label { text:
i18nd(
"purpose6_youtube",
"Description:") }
69 wrapMode: TextEdit.Wrap
70 Layout.fillWidth:
true
71 Layout.fillHeight:
true
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:05 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.