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
0e8b7471
Commit
0e8b7471
authored
Mar 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix rotation filter values
parent
08e4074a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+4
-4
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
0e8b7471
...
...
@@ -549,7 +549,7 @@ void ExtVideo::setWidgetValue( QObject *widget )
else
if
(
checkbox
)
checkbox
->
setCheckState
(
val
.
i_int
?
Qt
::
Checked
:
Qt
::
Unchecked
);
else
if
(
spinbox
)
spinbox
->
setValue
(
val
.
i_int
);
else
if
(
dial
)
dial
->
setValue
(
(
540
-
val
.
i_int
)
%
360
);
else
if
(
dial
)
dial
->
setValue
(
(
360
-
val
.
i_int
)
%
360
);
else
if
(
lineedit
)
{
char
str
[
30
];
...
...
@@ -564,7 +564,7 @@ void ExtVideo::setWidgetValue( QObject *widget )
{
if
(
slider
)
slider
->
setValue
(
(
int
)(
val
.
f_float
*
(
double
)
slider
->
tickInterval
()
)
);
/* hack alert! */
else
if
(
doublespinbox
)
doublespinbox
->
setValue
(
val
.
f_float
);
else
if
(
dial
)
dial
->
setValue
(
(
54
0
-
lroundf
(
val
.
f_float
))
%
360
);
else
if
(
dial
)
dial
->
setValue
(
(
36
0
-
lroundf
(
val
.
f_float
))
%
360
);
else
msg_Warn
(
p_intf
,
"Could not find the correct Float widget"
);
}
else
if
(
i_type
==
VLC_VAR_STRING
)
...
...
@@ -683,8 +683,8 @@ void ExtVideo::updateFilterOptions()
else
if
(
spinbox
)
i_int
=
spinbox
->
value
();
else
if
(
doublespinbox
)
f_float
=
doublespinbox
->
value
();
else
if
(
dial
)
{
i_int
=
(
54
0
-
dial
->
value
())
%
360
;
f_float
=
(
540
-
dial
->
value
())
/
360.
;
i_int
=
(
36
0
-
dial
->
value
())
%
360
;
f_float
=
i_int
;
}
else
if
(
lineedit
)
{
i_int
=
lineedit
->
text
().
toInt
(
NULL
,
16
);
...
...
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