Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F217232
FeedPage.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
FeedPage.qml
View Options
import
QtQuick
2.1
import
QtQuick
.
Controls
2.0
as
QQC2
import
org
.
kde
.
kirigami
2.4
as
Kirigami
import
Qt
.
labs
.
settings
1.0
import
"qrc:js/functions.js"
as
ManifoldJS
Kirigami
.
ScrollablePage
{
title:
"Feed"
Settings
{
id: settings
property
string
phab_url:
"https://phabricator.example.com"
property
string
api_token:
"api-aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
supportsRefreshing:
true
onRefreshingChanged:
{
if
(
refreshing
)
{
model
.
clear
();
ManifoldJS
.
refreshFeedPage
(
settings
.
phab_url
,
"/api/feed.query"
,
settings
.
api_token
);
}
}
property
var
phab_url:
ManifoldJS
.
phabURL
//Page contents...
ListView
{
id: taskList
model:
ListModel
{
id: model
}
anchors.fill:
parent
delegate:
Kirigami
.
SwipeListItem
{
id: myDelegate
QQC2
.
Label
{
text:
localtime
+
"\n"
+
ftext
elide:
Text
.
ElideRight
}
actions:
[
Kirigami
.
Action
{
//iconName: "internet-web-browser"
//iconSource: "qrc:/org/kde/kirigami/icons/internet-web-browser.svg"
iconSource:
"qrc:/org/kde/kirigami/icons/go-next.svg"
// Weirdly stuck in black and white outline, so
//iconColor: transparent
onTriggered:
Qt
.
openUrlExternally
(
settings
.
phab_url
+
"/feed/"
+
chron
)
}
]
}
Component.onCompleted:
{
ManifoldJS
.
refreshFeedPage
(
settings
.
phab_url
,
"/api/feed.query"
,
settings
.
api_token
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 10:18 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
154028
Default Alt Text
FeedPage.qml (1 KB)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment