Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F283327
FeedPage.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1001 B
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
"../js/functions.js"
as
ManifoldJS
// Temporary hack until I implement some settings or storage stuff
import
"../phabricator-apitoken.js"
as
ApiToken
Kirigami
.
ScrollablePage
{
title:
"Feed"
// Completely don't understand how to do this in pure QML / JavaScript yet, alas
supportsRefreshing:
true
onRefreshingChanged:
{
if
(
refreshing
)
{
model
.
clear
();
ManifoldJS
.
refreshFeedPage
(
"/api/feed.query"
,
ApiToken
.
apitoken
);
}
}
property
var
phab_url:
ManifoldJS
.
phabURL
Component
{
id: myDelegate
Text
{
text:
localtime
+
": "
+
ftext
color:
Kirigami
.
Theme
.
highlightedTextColor
onLinkActivated:
Qt
.
openUrlExternally
(
link
)
}
}
//Page contents...
ListView
{
id: taskList
model:
ListModel
{
id: model
}
anchors.fill:
parent
delegate:
myDelegate
Component.onCompleted:
{
ManifoldJS
.
refreshFeedPage
(
"/api/feed.query"
,
ApiToken
.
apitoken
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 18, 1:10 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
184776
Default Alt Text
FeedPage.qml (1001 B)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment