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
Show 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 {
...
@@ -15,18 +15,18 @@ ListView {
id
:
sectionHeading
id
:
sectionHeading
Rectangle
{
Rectangle
{
width
:
listView
.
width
width
:
listView
.
width
height
:
44
height
:
size
.
dp
(
44
)
color
:
"
black
"
color
:
"
black
"
Text
{
Text
{
id
:
sectionText
id
:
sectionText
text
:
section
text
:
section
font.capitalization
:
Font
.
AllUppercase
font.capitalization
:
Font
.
AllUppercase
font.pixelSize
:
20
font.pixelSize
:
size
.
dp
(
20
)
color
:
"
white
"
color
:
"
white
"
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
leftMargin
:
10
leftMargin
:
size
.
dp
(
10
)
verticalCenter
:
parent
.
verticalCenter
verticalCenter
:
parent
.
verticalCenter
}
}
}
}
...
@@ -35,10 +35,10 @@ ListView {
...
@@ -35,10 +35,10 @@ ListView {
id
:
line
id
:
line
height
:
1
height
:
1
color
:
"
white
"
color
:
"
white
"
width
:
listView
.
width
-
sectionText
.
width
-
30
width
:
listView
.
width
-
sectionText
.
width
-
size
.
dp
(
30
)
anchors
{
anchors
{
left
:
sectionText
.
right
left
:
sectionText
.
right
leftMargin
:
10
leftMargin
:
size
.
dp
(
10
)
verticalCenter
:
sectionText
.
verticalCenter
verticalCenter
:
sectionText
.
verticalCenter
}
}
}
}
...
@@ -48,7 +48,7 @@ ListView {
...
@@ -48,7 +48,7 @@ ListView {
Item
{
Item
{
id
:
bottom
id
:
bottom
width
:
parent
.
width
width
:
parent
.
width
height
:
30
height
:
size
.
dp
(
30
)
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
visible
:
listView
.
contentHeight
>
listView
.
height
visible
:
listView
.
contentHeight
>
listView
.
height
...
@@ -56,7 +56,7 @@ ListView {
...
@@ -56,7 +56,7 @@ ListView {
LinearGradient
{
LinearGradient
{
anchors.fill
:
parent
anchors.fill
:
parent
start
:
Qt
.
point
(
0
,
0
)
start
:
Qt
.
point
(
0
,
0
)
end
:
Qt
.
point
(
0
,
30
)
end
:
Qt
.
point
(
0
,
size
.
dp
(
30
)
)
gradient
:
Gradient
{
gradient
:
Gradient
{
GradientStop
{
position
:
0.0
;
color
:
"
transparent
"
}
GradientStop
{
position
:
0.0
;
color
:
"
transparent
"
}
GradientStop
{
position
:
1.0
;
color
:
"
black
"
}
GradientStop
{
position
:
1.0
;
color
:
"
black
"
}
...
@@ -70,13 +70,13 @@ ListView {
...
@@ -70,13 +70,13 @@ ListView {
visible
:
(
listView
.
showDecorator
&&
listView
.
contentHeight
>
listView
.
height
)
visible
:
(
listView
.
showDecorator
&&
listView
.
contentHeight
>
listView
.
height
)
color
:
"
#0091e5
"
color
:
"
#0091e5
"
width
:
5
width
:
size
.
dp
(
5
)
height
:
listView
.
height
*
listView
.
height
/
listView
.
contentHeight
height
:
listView
.
height
*
listView
.
height
/
listView
.
contentHeight
y
:
(
listView
.
height
)
/
listView
.
contentHeight
*
listView
.
contentY
y
:
(
listView
.
height
)
/
listView
.
contentHeight
*
listView
.
contentY
anchors
{
anchors
{
right
:
listView
.
right
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