Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
2343f3db
Commit
2343f3db
authored
Oct 05, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[notifications] Notifications view now flickable vertically and items are dynamically sized.
parent
ed68e92c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
FeedsPage.qml
src/qml/FeedsPage.qml
+21
-15
No files found.
src/qml/FeedsPage.qml
View file @
2343f3db
...
...
@@ -28,11 +28,15 @@ import QtQuick.Controls.Nemo 1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
// Feeds page:
// the place for an event feed.
Flickable
{
id
:
mainFlickable
Item
{
contentHeight
:
rootitem
.
height
contentWidth
:
parent
.
width
Item
{
id
:
rootitem
Column
{
spacing
:
40
width
:
parent
.
width
height
:
childrenRect
.
height
// Day of week
Row
{
id
:
daterow
...
...
@@ -67,18 +71,19 @@ Item {
}
Column
{
id
:
notificationColumn
anchors.top
:
daterow
.
bottom
spacing
:
40
anchors.topMargin
:
20
spacing
:
10
Repeater
{
model
:
NotificationListModel
{
id
:
notifmodel
}
delegate
:
Row
{
spacing
:
16
height
:
40
width
:
rootitem
.
width
delegate
:
MouseArea
{
anchors.fill
:
parent
height
:
Math
.
max
(
appSummary
.
height
,
appBody
.
height
)
width
:
rootitem
.
width
onClicked
:
{
if
(
modelData
.
userRemovable
)
{
modelData
.
actionInvoked
(
"
default
"
)
...
...
@@ -88,8 +93,8 @@ Item {
Image
{
id
:
appIcon
source
:
{
if
(
modelData
.
appI
con
)
return
"
image://theme/
"
+
modelData
.
appI
con
if
(
modelData
.
i
con
)
return
"
image://theme/
"
+
modelData
.
i
con
else
return
""
}
...
...
@@ -98,13 +103,14 @@ Item {
Label
{
id
:
appSummary
text
:
modelData
.
summary
width
:
rootitem
.
width
/
2
width
:
(
rootitem
.
width
-
appIcon
.
width
)
/
2
font.pointSize
:
10
anchors.left
:
appIcon
.
right
wrapMode
:
Text
.
Wrap
}
Label
{
width
:
rootitem
.
width
/
2
id
:
appBody
width
:
(
rootitem
.
width
-
appIcon
.
width
)
/
2
text
:
modelData
.
body
font.pointSize
:
8
wrapMode
:
Text
.
Wrap
...
...
@@ -114,5 +120,5 @@ Item {
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment