Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
c4cc43ac
Commit
c4cc43ac
authored
Jan 23, 2018
by
Karel Slaný
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using ScrollableListView for attachment lists.
parent
63d548bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
qml/pages/PageAccountList.qml
qml/pages/PageAccountList.qml
+4
-1
qml/pages/PageMessageDetail.qml
qml/pages/PageMessageDetail.qml
+7
-2
No files found.
qml/pages/PageAccountList.qml
View file @
c4cc43ac
...
...
@@ -143,6 +143,9 @@ Component {
}
ScrollableListView
{
id
:
accountList
delegateHeight
:
headerHeight
*
3
anchors.top
:
datovkaHeader
.
bottom
anchors.bottom
:
parent
.
bottom
clip
:
true
...
...
@@ -168,7 +171,7 @@ Component {
delegate
:
Item
{
id
:
accountItem
width
:
parent
.
width
height
:
headerHeight
*
3
height
:
accountList
.
delegateHeight
ColumnLayout
{
spacing
:
0
width
:
parent
.
width
...
...
qml/pages/PageMessageDetail.qml
View file @
c4cc43ac
...
...
@@ -253,8 +253,11 @@ Component {
color
:
datovkaPalette
.
dark
}
}
ListView
{
Scrollable
ListView
{
id
:
attachmentList
delegateHeight
:
headerHeight
anchors.top
:
attachmentLabel
.
bottom
anchors.bottom
:
parent
.
bottom
clip
:
true
...
...
@@ -271,7 +274,7 @@ Component {
delegate
:
Rectangle
{
id
:
attachmentItem
width
:
parent
.
width
height
:
header
Height
height
:
attachmentList
.
delegate
Height
color
:
datovkaPalette
.
base
Image
{
id
:
imageAttachment
...
...
@@ -355,6 +358,8 @@ Component {
Accessible.role
:
Accessible
.
Button
Accessible.name
:
qsTr
(
"
Open attachment '%1'.
"
).
arg
(
rFileName
)
Accessible.onScrollDownAction
:
attachmentList
.
scrollDown
()
Accessible.onScrollUpAction
:
attachmentList
.
scrollUp
()
Accessible.onPressAction
:
{
handleClick
()
}
...
...
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