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
...
@@ -28,11 +28,15 @@ import QtQuick.Controls.Nemo 1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
// Feeds page:
// Feeds page:
// the place for an event feed.
// the place for an event feed.
Flickable
{
id
:
mainFlickable
Item
{
contentHeight
:
rootitem
.
height
contentWidth
:
parent
.
width
Item
{
id
:
rootitem
id
:
rootitem
Column
{
width
:
parent
.
width
spacing
:
40
height
:
childrenRect
.
height
// Day of week
// Day of week
Row
{
Row
{
id
:
daterow
id
:
daterow
...
@@ -67,18 +71,19 @@ Item {
...
@@ -67,18 +71,19 @@ Item {
}
}
Column
{
Column
{
id
:
notificationColumn
anchors.top
:
daterow
.
bottom
anchors.top
:
daterow
.
bottom
spacing
:
40
anchors.topMargin
:
20
spacing
:
10
Repeater
{
Repeater
{
model
:
NotificationListModel
{
model
:
NotificationListModel
{
id
:
notifmodel
id
:
notifmodel
}
}
delegate
:
Row
{
delegate
:
spacing
:
16
height
:
40
width
:
rootitem
.
width
MouseArea
{
MouseArea
{
anchors.fill
:
parent
height
:
Math
.
max
(
appSummary
.
height
,
appBody
.
height
)
width
:
rootitem
.
width
onClicked
:
{
onClicked
:
{
if
(
modelData
.
userRemovable
)
{
if
(
modelData
.
userRemovable
)
{
modelData
.
actionInvoked
(
"
default
"
)
modelData
.
actionInvoked
(
"
default
"
)
...
@@ -88,8 +93,8 @@ Item {
...
@@ -88,8 +93,8 @@ Item {
Image
{
Image
{
id
:
appIcon
id
:
appIcon
source
:
{
source
:
{
if
(
modelData
.
appI
con
)
if
(
modelData
.
i
con
)
return
"
image://theme/
"
+
modelData
.
appI
con
return
"
image://theme/
"
+
modelData
.
i
con
else
else
return
""
return
""
}
}
...
@@ -98,13 +103,14 @@ Item {
...
@@ -98,13 +103,14 @@ Item {
Label
{
Label
{
id
:
appSummary
id
:
appSummary
text
:
modelData
.
summary
text
:
modelData
.
summary
width
:
rootitem
.
width
/
2
width
:
(
rootitem
.
width
-
appIcon
.
width
)
/
2
font.pointSize
:
10
font.pointSize
:
10
anchors.left
:
appIcon
.
right
anchors.left
:
appIcon
.
right
wrapMode
:
Text
.
Wrap
wrapMode
:
Text
.
Wrap
}
}
Label
{
Label
{
width
:
rootitem
.
width
/
2
id
:
appBody
width
:
(
rootitem
.
width
-
appIcon
.
width
)
/
2
text
:
modelData
.
body
text
:
modelData
.
body
font.pointSize
:
8
font.pointSize
:
8
wrapMode
:
Text
.
Wrap
wrapMode
:
Text
.
Wrap
...
@@ -114,5 +120,5 @@ Item {
...
@@ -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