Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui-qml
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
libdap-qt-ui-qml
Commits
f66147c4
Commit
f66147c4
authored
5 years ago
by
Kirill Anisimov
Browse files
Options
Downloads
Patches
Plain Diff
Moved Scroll Button icons to properties.
parent
184890c3
No related branches found
No related tags found
1 merge request
!18
Features 2923
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
widgets/DapScrollView.qml
+4
-4
4 additions, 4 deletions
widgets/DapScrollView.qml
widgets/DapScrollViewForm.ui.qml
+8
-2
8 additions, 2 deletions
widgets/DapScrollViewForm.ui.qml
with
12 additions
and
6 deletions
widgets/DapScrollView.qml
+
4
−
4
View file @
f66147c4
...
...
@@ -45,11 +45,11 @@ DapScrollViewForm
{
if
(
scrollButton
.
state
===
"
goUp
"
)
{
scrollButton
.
i
mage
S
ource
=
"
qrc:/res/icons/ic_
scroll
-d
own
_hover.png
"
scrollButton
I
mage
.
s
ource
=
scroll
D
own
ButtonHoveredImageSource
}
else
if
(
scrollButton
.
state
===
"
goDown
"
)
{
scrollButton
.
i
mage
S
ource
=
"
qrc:/res/icons/ic_scroll-up_hover.png
"
scrollButton
I
mage
.
s
ource
=
scrollUpButtonHoveredImageSource
}
}
...
...
@@ -57,11 +57,11 @@ DapScrollViewForm
{
if
(
scrollButton
.
state
===
"
goUp
"
)
{
scrollButton
.
i
mage
S
ource
=
"
qrc:/res/icons/ic_
scroll
-d
own
.png
"
scrollButton
I
mage
.
s
ource
=
scroll
D
own
ButtonImageSource
}
else
if
(
scrollButton
.
state
===
"
goDown
"
)
{
scrollButton
.
i
mage
S
ource
=
"
qrc:/res/icons/ic_scroll-up.png
"
scrollButton
I
mage
.
s
ource
=
scrollUpButtonImageSource
}
}
...
...
This diff is collapsed.
Click to expand it.
widgets/DapScrollViewForm.ui.qml
+
8
−
2
View file @
f66147c4
...
...
@@ -3,10 +3,16 @@ import QtQuick 2.4
MouseArea
{
id
:
dapScrollMouseArea
////@ Icons for Scroll Button
property
string
scrollDownButtonImageSource
:
""
property
string
scrollDownButtonHoveredImageSource
:
""
property
string
scrollUpButtonImageSource
:
""
property
string
scrollUpButtonHoveredImageSource
:
""
////@ ListView to attach the ScrollButton
property
ListView
viewData
:
ListView
{}
property
alias
scrollMouseArea
:
dapScrollMouseArea
property
alias
scrollButton
:
dapScrollButton
property
alias
scrollButtonImage
:
dapScrollButtonImage
anchors.fill
:
parent
hoverEnabled
:
true
...
...
@@ -14,7 +20,6 @@ MouseArea
MouseArea
{
id
:
dapScrollButton
property
string
imageSource
:
"
qrc:/res/icons/ic_scroll-down.png
"
width
:
36
*
pt
height
:
width
anchors.right
:
parent
.
right
...
...
@@ -27,9 +32,10 @@ MouseArea
Image
{
id
:
dapScrollButtonImage
anchors.fill
:
parent
fillMode
:
Image
.
PreserveAspectFit
source
:
dapS
crollButton
.
i
mageSource
source
:
s
croll
Down
Button
I
mageSource
sourceSize.height
:
parent
.
height
sourceSize.width
:
parent
.
width
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment