Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cb459a04
Commit
cb459a04
authored
Nov 26, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Volume slider, move the slider when only clicked on it as ivoire requested.
parent
e755d8fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+7
-6
No files found.
modules/gui/qt4/util/input_slider.cpp
View file @
cb459a04
...
@@ -97,19 +97,19 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
...
@@ -97,19 +97,19 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
pixGradient
=
QPixmap
(
mask
.
size
()
);
pixGradient
=
QPixmap
(
mask
.
size
()
);
QPainter
p
(
&
pixGradient
);
QLinearGradient
gradient
(
padding
,
2
,
WLENGTH
,
2
);
QLinearGradient
gradient
(
padding
,
2
,
WLENGTH
,
2
);
gradient
.
setColorAt
(
0.0
,
Qt
::
white
);
gradient
.
setColorAt
(
0.0
,
Qt
::
white
);
gradient
.
setColorAt
(
0.2
,
QColor
(
20
,
226
,
20
)
);
gradient
.
setColorAt
(
0.2
,
QColor
(
20
,
226
,
20
)
);
gradient
.
setColorAt
(
0.5
,
QColor
(
255
,
176
,
15
)
);
gradient
.
setColorAt
(
0.5
,
QColor
(
255
,
176
,
15
)
);
gradient
.
setColorAt
(
1.0
,
QColor
(
235
,
30
,
20
)
);
gradient
.
setColorAt
(
1.0
,
QColor
(
235
,
30
,
20
)
);
p
.
setPen
(
Qt
::
NoPen
);
p
.
setBrush
(
gradient
);
p
.
drawRect
(
pixGradient
.
rect
()
);
QPainter
painter
(
&
pixGradient
);
p
.
end
();
painter
.
setPen
(
Qt
::
NoPen
);
painter
.
setBrush
(
gradient
);
painter
.
drawRect
(
pixGradient
.
rect
()
);
painter
.
end
();
pixGradient
.
setMask
(
mask
);
pixGradient
.
setMask
(
mask
);
}
}
void
SoundSlider
::
wheelEvent
(
QWheelEvent
*
event
)
void
SoundSlider
::
wheelEvent
(
QWheelEvent
*
event
)
...
@@ -128,6 +128,7 @@ void SoundSlider::mousePressEvent( QMouseEvent *event )
...
@@ -128,6 +128,7 @@ void SoundSlider::mousePressEvent( QMouseEvent *event )
b_sliding
=
true
;
b_sliding
=
true
;
i_oldvalue
=
value
();
i_oldvalue
=
value
();
emit
sliderPressed
();
emit
sliderPressed
();
changeValue
(
event
->
x
()
-
padding
);
}
}
}
}
...
...
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