Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fdd6eed1
Commit
fdd6eed1
authored
Feb 21, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: screen-fps is a float, not an integer...
...so allow decimal values.
parent
f47bbde3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+7
-4
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+1
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
fdd6eed1
...
@@ -1012,13 +1012,16 @@ void CaptureOpenPanel::initialize()
...
@@ -1012,13 +1012,16 @@ void CaptureOpenPanel::initialize()
qtr
(
"Desired frame rate for the capture."
)
);
qtr
(
"Desired frame rate for the capture."
)
);
screenPropLayout
->
addWidget
(
screenFPSLabel
,
0
,
0
);
screenPropLayout
->
addWidget
(
screenFPSLabel
,
0
,
0
);
screenFPS
=
new
QSpinBox
;
screenFPS
=
new
QDoubleSpinBox
;
screenFPS
->
setValue
(
1
);
screenFPS
->
setValue
(
1.
);
screenFPS
->
setRange
(
.01
,
100.
);
screenFPS
->
setAlignment
(
Qt
::
AlignRight
);
screenFPS
->
setAlignment
(
Qt
::
AlignRight
);
/* xgettext: frames per second */
screenFPS
->
setSuffix
(
qtr
(
" f/s"
)
);
screenPropLayout
->
addWidget
(
screenFPS
,
0
,
1
);
screenPropLayout
->
addWidget
(
screenFPS
,
0
,
1
);
/* Screen connect */
/* Screen connect */
CuMRL
(
screenFPS
,
valueChanged
(
int
)
);
CuMRL
(
screenFPS
,
valueChanged
(
double
)
);
/* General connects */
/* General connects */
CONNECT
(
ui
.
deviceCombo
,
activated
(
int
)
,
CONNECT
(
ui
.
deviceCombo
,
activated
(
int
)
,
...
@@ -1136,7 +1139,7 @@ void CaptureOpenPanel::updateMRL()
...
@@ -1136,7 +1139,7 @@ void CaptureOpenPanel::updateMRL()
#endif
#endif
case
SCREEN_DEVICE
:
case
SCREEN_DEVICE
:
fileList
<<
"screen://"
;
fileList
<<
"screen://"
;
mrl
=
" :screen-fps="
+
QString
::
number
(
screenFPS
->
value
()
);
mrl
=
" :screen-fps="
+
QString
::
number
(
screenFPS
->
value
()
,
'f'
);
emit
methodChanged
(
"screen-caching"
);
emit
methodChanged
(
"screen-caching"
);
updateButtons
();
updateButtons
();
break
;
break
;
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
fdd6eed1
...
@@ -198,7 +198,7 @@ private:
...
@@ -198,7 +198,7 @@ private:
QCheckBox
*
jackPace
,
*
jackConnect
;
QCheckBox
*
jackPace
,
*
jackConnect
;
QLineEdit
*
jackPortsSelected
;
QLineEdit
*
jackPortsSelected
;
#endif
#endif
QSpinBox
*
screenFPS
;
Q
Double
SpinBox
*
screenFPS
;
public
slots
:
public
slots
:
virtual
void
updateMRL
();
virtual
void
updateMRL
();
...
...
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