Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F312664
SettingsPage.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
SettingsPage.qml
View Options
import
QtQuick
2.0
import
Sailfish
.
Silica
1.0
Dialog
{
id: settingspage
SilicaFlickable
{
anchors.fill:
parent
Column
{
anchors.fill:
parent
DialogHeader
{
acceptText:
qsTr
(
"Save"
)
}
TextField
{
id: urlField
width:
parent
.
width
label:
qsTr
(
"Phabricator URL"
)
placeholderText:
qsTr
(
"https://phabricator.example.com"
)
text:
settings
.
phab_url
EnterKey.enabled:
text
.
length
>
0
EnterKey.iconSource:
"image://theme/icon-m-enter-next"
EnterKey.onClicked:
tokenField
.
focus
=
true
}
TextField
{
id: tokenField
width:
parent
.
width
label:
qsTr
(
"API Token"
)
placeholderText:
qsTr
(
"api-aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
)
text:
settings
.
api_token
EnterKey.iconSource:
"image://theme/icon-m-enter-close"
EnterKey.onClicked:
focus
=
false
}
}
VerticalScrollDecorator
{}
}
onDone:
{
if
(
result
==
DialogResult
.
Accepted
)
{
settings
.
phab_url
=
urlField
.
text
;
settings
.
api_token
=
tokenField
.
text
;
rootTexts
.
updateValues
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 28, 10:31 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193882
Default Alt Text
SettingsPage.qml (1 KB)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment