Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F272743
ManiphestPage.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
ManiphestPage.qml
View Options
import
QtQuick
2.0
import
Sailfish
.
Silica
1.0
import
"../../js/functions.js"
as
ManifoldJS
Page
{
id: page
// The effective value will be restricted by ApplicationWindow.allowedOrientations
allowedOrientations:
Orientation
.
All
SilicaListView
{
id: taskList
model:
ListModel
{
id: model
}
anchors.fill:
parent
header:
PageHeader
{
title:
"Maniphest Tasks"
}
spacing:
Theme
.
paddingSmall
PullDownMenu
{
MenuItem
{
text:
qsTr
(
"Refresh"
)
onClicked:
ManifoldJS
.
refreshManiphestPage
(
settings
.
phab_url
,
settings
.
api_token
);
}
}
delegate:
ListItem
{
id: myDelegate
menu:
contextMenu
Label
{
id: label
text:
"T"
+
taskID
+
" | "
+
status
+
" | "
+
priorityName
color:
priorityColor
}
Label
{
anchors.top:
label
.
bottom
text:
title
font.pixelSize:
Theme
.
fontSizeSmall
wrapMode:
Text
.
WordWrap
}
Component
{
id: contextMenu
ContextMenu
{
MenuItem
{
text:
"Open"
onClicked:
Qt
.
openUrlExternally
(
settings
.
phab_url
+
"/T"
+
taskID
)
}
}
}
}
Component.onCompleted:
{
ManifoldJS
.
refreshManiphestPage
(
settings
.
phab_url
,
settings
.
api_token
);
}
VerticalScrollDecorator
{}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 29, 11:03 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
178038
Default Alt Text
ManiphestPage.qml (1 KB)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment