Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F217280
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"
//Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
Settings
{
id: settings
property
string
phab_url:
"https://phabricator.example.com"
property
string
api_token:
"api-aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
// Handle refreshing
supportsRefreshing:
true
onRefreshingChanged:
{
if
(
refreshing
)
{
model
.
clear
();
ManifoldJS
.
refreshFeedPage
(
settings
.
phab_url
,
settings
.
api_token
);
refreshing
=
false
;
}
}
//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
,
settings
.
api_token
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 8:01 AM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
154040
Default Alt Text
FeedPage.qml (1 KB)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment