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
f27f3d7b
Commit
f27f3d7b
authored
Jan 28, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ListView] add bottom gradient
parent
4789650d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
ListView.qml
src/controls/ListView.qml
+21
-1
No files found.
src/controls/ListView.qml
View file @
f27f3d7b
import
QtQuick
2.1
import
QtQuick
.
Controls
1.0
import
QtGraphicalEffects
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
ListView
{
...
...
@@ -39,5 +39,25 @@ ListView {
}
}
}
Item
{
id
:
bottom
width
:
parent
.
width
height
:
30
anchors.bottom
:
parent
.
bottom
visible
:
listView
.
contentHeight
>=
listView
.
height
LinearGradient
{
anchors.fill
:
parent
start
:
Qt
.
point
(
0
,
0
)
end
:
Qt
.
point
(
0
,
30
)
gradient
:
Gradient
{
GradientStop
{
position
:
0.0
;
color
:
"
transparent
"
}
GradientStop
{
position
:
1.0
;
color
:
"
black
"
}
}
}
}
}
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