Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Datovka projects
mobile Datovka
Commits
ff68a2ec
Commit
ff68a2ec
authored
May 12, 2017
by
Martin Straka
Committed by
Karel Slaný
May 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring account detail page
parent
9309c6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
35 deletions
+23
-35
qml/pages/PageAccountDetail.qml
qml/pages/PageAccountDetail.qml
+23
-35
No files found.
qml/pages/PageAccountDetail.qml
View file @
ff68a2ec
...
...
@@ -22,7 +22,7 @@
*/
import
QtQuick
2.7
import
QtQuick
.
Controls
2.
0
import
QtQuick
.
Controls
2.
1
import
cz
.
nic
.
mobileDatovka
1.0
Component
{
...
...
@@ -70,38 +70,19 @@ Component {
}
}
}
}
Text
{
id
:
emptyList
visible
:
true
color
:
datovkaPalette
.
text
anchors.centerIn
:
parent
text
:
qsTr
(
"
Account info has not been downloaded yet.
"
)
}
Rectangle
{
id
:
accountDetail
}
// PageHeader
Flickable
{
id
:
flickable
z
:
0
anchors.top
:
headerBar
.
bottom
width
:
parent
.
width
height
:
parent
.
height
visible
:
false
color
:
datovkaPalette
.
base
ListModel
{
id
:
accountDetailModel
ListElement
{
text
:
""
}
}
ListView
{
id
:
accountDetailList
anchors.right
:
parent
.
right
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
contentHeight
:
flickContent
.
implicitHeight
Pane
{
id
:
flickContent
anchors.fill
:
parent
anchors.margins
:
defaultMargin
clip
:
true
spacing
:
0
opacity
:
1
visible
:
true
interactive
:
true
model
:
accountDetailModel
delegate
:
Text
{
Text
{
id
:
accountDetailText
color
:
datovkaPalette
.
text
width
:
parent
.
width
...
...
@@ -111,13 +92,20 @@ Component {
target
:
accounts
onAccountDetailChanged
:
{
emptyList
.
visible
=
false
accountDetail
.
visible
=
true
flickable
.
visible
=
true
accountDetailText
.
text
=
txt
}
}
}
}
}
}
// Pane
ScrollIndicator.vertical
:
ScrollIndicator
{}
}
// Flickable
Text
{
id
:
emptyList
visible
:
true
color
:
datovkaPalette
.
text
anchors.centerIn
:
parent
text
:
qsTr
(
"
Account info has not been downloaded yet.
"
)
}
// Text
}
}
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