10import org.kde.purpose.reviewboard
15 property alias server: serverField.text
16 property alias username: usernameField.text
17 property alias password: passwordField.text
18 property alias repository: repositoriesCombo.currentText
19 property string updateRR: ""
20 property string baseDir
21 property string localBaseDir
22 property var extraData: rcfile.extraData
30 path: root.localBaseDir + "/.reviewboardrc
"
34 text: i18nd("purpose6_reviewboard
", "Server:
")
38 Layout.fillWidth: true
42 text: i18nd("purpose6_reviewboard
", "Username:
")
46 Layout.fillWidth: true
49 text: i18nd("purpose6_reviewboard
", "Password:
")
53 echoMode: TextInput.Password
54 Layout.fillWidth: true
58 text: i18nd("purpose6_reviewboard
", "Repository:
")
62 Layout.fillWidth: true
64 model: RepositoriesModel {
65 server: serverField.text
66 onRepositoriesChanged: {
67 repositoriesCombo.currentIndex = findRepository(rcfile.repository);
72 function refreshUpdateRR() {
73 root.updateRR = (updateRRCombo.currentIndex >= 0 && update.checked) ? reviewsList.get(updateRRCombo.currentIndex, "toolTip
") : ""
77 Layout.fillWidth: true
81 anchors.centerIn: parent
83 text: i18nd("purpose6_reviewboard
", "Update Review:
")
84 enabled: updateRRCombo.count > 0
86 root.refreshUpdateRR();
92 Layout.fillWidth: true
93 enabled: update.checked
95 model: ReviewsListModel {
98 repository: root.repository
99 username: root.username
102 onCurrentIndexChanged: {
103 root.refreshUpdateRR();
108 Layout.fillHeight: true
109 Layout.fillWidth: true
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.