Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
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
qtquickcontrols-nemo
Commits
9906bc68
Commit
9906bc68
authored
Apr 09, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ListView] add scaling
parent
b08594ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ListView.qml
src/controls/ListView.qml
+9
-9
No files found.
src/controls/ListView.qml
View file @
9906bc68
...
...
@@ -15,18 +15,18 @@ ListView {
id
:
sectionHeading
Rectangle
{
width
:
listView
.
width
height
:
44
height
:
size
.
dp
(
44
)
color
:
"
black
"
Text
{
id
:
sectionText
text
:
section
font.capitalization
:
Font
.
AllUppercase
font.pixelSize
:
20
font.pixelSize
:
size
.
dp
(
20
)
color
:
"
white
"
anchors
{
left
:
parent
.
left
leftMargin
:
10
leftMargin
:
size
.
dp
(
10
)
verticalCenter
:
parent
.
verticalCenter
}
}
...
...
@@ -35,10 +35,10 @@ ListView {
id
:
line
height
:
1
color
:
"
white
"
width
:
listView
.
width
-
sectionText
.
width
-
30
width
:
listView
.
width
-
sectionText
.
width
-
size
.
dp
(
30
)
anchors
{
left
:
sectionText
.
right
leftMargin
:
10
leftMargin
:
size
.
dp
(
10
)
verticalCenter
:
sectionText
.
verticalCenter
}
}
...
...
@@ -48,7 +48,7 @@ ListView {
Item
{
id
:
bottom
width
:
parent
.
width
height
:
30
height
:
size
.
dp
(
30
)
anchors.bottom
:
parent
.
bottom
visible
:
listView
.
contentHeight
>
listView
.
height
...
...
@@ -56,7 +56,7 @@ ListView {
LinearGradient
{
anchors.fill
:
parent
start
:
Qt
.
point
(
0
,
0
)
end
:
Qt
.
point
(
0
,
30
)
end
:
Qt
.
point
(
0
,
size
.
dp
(
30
)
)
gradient
:
Gradient
{
GradientStop
{
position
:
0.0
;
color
:
"
transparent
"
}
GradientStop
{
position
:
1.0
;
color
:
"
black
"
}
...
...
@@ -70,13 +70,13 @@ ListView {
visible
:
(
listView
.
showDecorator
&&
listView
.
contentHeight
>
listView
.
height
)
color
:
"
#0091e5
"
width
:
5
width
:
size
.
dp
(
5
)
height
:
listView
.
height
*
listView
.
height
/
listView
.
contentHeight
y
:
(
listView
.
height
)
/
listView
.
contentHeight
*
listView
.
contentY
anchors
{
right
:
listView
.
right
rightMargin
:
4
rightMargin
:
size
.
dp
(
4
)
}
}
}
...
...
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