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
ec0ceb44
Commit
ec0ceb44
authored
Mar 02, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: various visibility warnings fixs
parent
d1a8b724
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
39 deletions
+41
-39
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+3
-3
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+12
-12
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+5
-5
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+2
-2
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+4
-4
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+4
-4
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+4
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+7
-5
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
ec0ceb44
...
@@ -1290,14 +1290,14 @@ void Compressor::enable( bool en )
...
@@ -1290,14 +1290,14 @@ void Compressor::enable( bool en )
}
}
}
}
void
Compressor
::
updateSliders
(
float
*
controlVars
)
void
Compressor
::
updateSliders
(
float
*
p_
controlVars
)
{
{
for
(
int
i
=
0
;
i
<
NUM_CP_CTRL
;
i
++
)
for
(
int
i
=
0
;
i
<
NUM_CP_CTRL
;
i
++
)
{
{
if
(
oldControlVars
[
i
]
!=
controlVars
[
i
]
)
if
(
oldControlVars
[
i
]
!=
p_
controlVars
[
i
]
)
{
{
compCtrl
[
i
]
->
setValue
(
compCtrl
[
i
]
->
setValue
(
(
int
)(
controlVars
[
i
]
/
comp_controls
[
i
].
f_resolution
)
);
(
int
)(
p_
controlVars
[
i
]
/
comp_controls
[
i
].
f_resolution
)
);
}
}
}
}
}
}
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
ec0ceb44
...
@@ -1365,12 +1365,12 @@ void KeySelectorControl::finish()
...
@@ -1365,12 +1365,12 @@ void KeySelectorControl::finish()
QMap
<
QString
,
QString
>
global_keys
;
QMap
<
QString
,
QString
>
global_keys
;
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
{
{
module_config_t
*
p_item
=
p_config
+
i
;
module_config_t
*
p_
config_
item
=
p_config
+
i
;
/* If we are a (non-global) key option not empty */
/* If we are a (non-global) key option not empty */
if
(
CONFIG_ITEM
(
p_
item
->
i_type
)
&&
p
_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_
config_item
->
i_type
)
&&
p_config
_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"key-"
,
4
)
&&
!
strncmp
(
p_
config_
item
->
psz_name
,
"key-"
,
4
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
&&
!
EMPTY_STR
(
p_
config_
item
->
psz_text
)
)
{
{
/*
/*
Each tree item has:
Each tree item has:
...
@@ -1379,11 +1379,11 @@ void KeySelectorControl::finish()
...
@@ -1379,11 +1379,11 @@ void KeySelectorControl::finish()
- KeyValue in String in column 1
- KeyValue in String in column 1
*/
*/
QTreeWidgetItem
*
treeItem
=
new
QTreeWidgetItem
();
QTreeWidgetItem
*
treeItem
=
new
QTreeWidgetItem
();
treeItem
->
setText
(
0
,
qtr
(
p_item
->
psz_text
)
);
treeItem
->
setText
(
0
,
qtr
(
p_
config_
item
->
psz_text
)
);
treeItem
->
setData
(
0
,
Qt
::
UserRole
,
treeItem
->
setData
(
0
,
Qt
::
UserRole
,
QVariant
(
qfu
(
p_item
->
psz_name
)
)
);
QVariant
(
qfu
(
p_
config_
item
->
psz_name
)
)
);
QString
keys
=
qfu
(
p_item
->
value
.
psz
);
QString
keys
=
qfu
(
p_
config_
item
->
value
.
psz
);
treeItem
->
setText
(
1
,
keys
);
treeItem
->
setText
(
1
,
keys
);
treeItem
->
setToolTip
(
1
,
qtr
(
"Double click to change"
)
);
treeItem
->
setToolTip
(
1
,
qtr
(
"Double click to change"
)
);
treeItem
->
setToolTip
(
2
,
qtr
(
"Double click to change"
)
);
treeItem
->
setToolTip
(
2
,
qtr
(
"Double click to change"
)
);
...
@@ -1392,12 +1392,12 @@ void KeySelectorControl::finish()
...
@@ -1392,12 +1392,12 @@ void KeySelectorControl::finish()
continue
;
continue
;
}
}
if
(
CONFIG_ITEM
(
p_
item
->
i_type
)
&&
p
_item
->
psz_name
!=
NULL
if
(
CONFIG_ITEM
(
p_
config_item
->
i_type
)
&&
p_config
_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"global-key"
,
10
)
&&
!
strncmp
(
p_
config_
item
->
psz_name
,
"global-key"
,
10
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
&&
!
EMPTY_STR
(
p_
config_
item
->
psz_text
)
&&
!
EMPTY_STR
(
p_item
->
value
.
psz
)
)
&&
!
EMPTY_STR
(
p_
config_
item
->
value
.
psz
)
)
{
{
global_keys
.
insertMulti
(
qtr
(
p_
item
->
psz_text
),
qfu
(
p
_item
->
value
.
psz
)
);
global_keys
.
insertMulti
(
qtr
(
p_
config_item
->
psz_text
),
qfu
(
p_config
_item
->
value
.
psz
)
);
}
}
}
}
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
ec0ceb44
...
@@ -369,8 +369,8 @@ void OpenDialog::enqueue( bool b_enqueue )
...
@@ -369,8 +369,8 @@ void OpenDialog::enqueue( bool b_enqueue )
{
{
bool
b_start
=
!
i
&&
!
b_enqueue
;
bool
b_start
=
!
i
&&
!
b_enqueue
;
input_item_t
*
p_input
;
input_item_t
*
p_input
_item
;
p_input
=
input_item_New
(
qtu
(
itemsMRL
[
i
]
),
NULL
);
p_input
_item
=
input_item_New
(
qtu
(
itemsMRL
[
i
]
),
NULL
);
/* Take options from the UI, not from what we stored */
/* Take options from the UI, not from what we stored */
QStringList
optionsList
=
getOptions
().
split
(
" :"
);
QStringList
optionsList
=
getOptions
().
split
(
" :"
);
...
@@ -381,7 +381,7 @@ void OpenDialog::enqueue( bool b_enqueue )
...
@@ -381,7 +381,7 @@ void OpenDialog::enqueue( bool b_enqueue )
QString
qs
=
colon_unescape
(
optionsList
[
j
]
);
QString
qs
=
colon_unescape
(
optionsList
[
j
]
);
if
(
!
qs
.
isEmpty
()
)
if
(
!
qs
.
isEmpty
()
)
{
{
input_item_AddOption
(
p_input
,
qtu
(
qs
),
input_item_AddOption
(
p_input
_item
,
qtu
(
qs
),
VLC_INPUT_OPTION_TRUSTED
);
VLC_INPUT_OPTION_TRUSTED
);
#ifdef DEBUG_QT
#ifdef DEBUG_QT
msg_Warn
(
p_intf
,
"Input option: %s"
,
qtu
(
qs
)
);
msg_Warn
(
p_intf
,
"Input option: %s"
,
qtu
(
qs
)
);
...
@@ -391,10 +391,10 @@ void OpenDialog::enqueue( bool b_enqueue )
...
@@ -391,10 +391,10 @@ void OpenDialog::enqueue( bool b_enqueue )
/* Switch between enqueuing and starting the item */
/* Switch between enqueuing and starting the item */
/* FIXME: playlist_AddInput() can fail */
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
THEPL
,
p_input
,
playlist_AddInput
(
THEPL
,
p_input
_item
,
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
b_pl
?
true
:
false
,
pl_Unlocked
);
PLAYLIST_END
,
b_pl
?
true
:
false
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
vlc_gc_decref
(
p_input
_item
);
/* Do not add the current MRL if playlist_AddInput fail */
/* Do not add the current MRL if playlist_AddInput fail */
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
itemsMRL
[
i
]
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
itemsMRL
[
i
]
);
...
...
modules/gui/qt4/dialogs/plugins.cpp
View file @
ec0ceb44
...
@@ -85,8 +85,8 @@ PluginDialog::~PluginDialog()
...
@@ -85,8 +85,8 @@ PluginDialog::~PluginDialog()
/* Plugins tab */
/* Plugins tab */
PluginTab
::
PluginTab
(
intf_thread_t
*
p_intf
)
PluginTab
::
PluginTab
(
intf_thread_t
*
p_intf
_
)
:
QVLCFrame
(
p_intf
)
:
QVLCFrame
(
p_intf
_
)
{
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
ec0ceb44
...
@@ -544,7 +544,7 @@ void DroppingController::resetLine( const QString& line )
...
@@ -544,7 +544,7 @@ void DroppingController::resetLine( const QString& line )
/* Overloading the AbstractController one, because we don't manage the
/* Overloading the AbstractController one, because we don't manage the
Spacing items in the same ways */
Spacing items in the same ways */
void
DroppingController
::
createAndAddWidget
(
QBoxLayout
*
c
ontrolLayout
,
void
DroppingController
::
createAndAddWidget
(
QBoxLayout
*
newC
ontrolLayout
,
int
i_index
,
int
i_index
,
buttonType_e
i_type
,
buttonType_e
i_type
,
int
i_option
)
int
i_option
)
...
@@ -574,7 +574,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
...
@@ -574,7 +574,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
/* Install event Filter for drag'n drop */
/* Install event Filter for drag'n drop */
label
->
installEventFilter
(
this
);
label
->
installEventFilter
(
this
);
c
ontrolLayout
->
insertWidget
(
i_index
,
label
);
newC
ontrolLayout
->
insertWidget
(
i_index
,
label
);
}
}
/* Normal Widgets */
/* Normal Widgets */
...
@@ -616,11 +616,11 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
...
@@ -616,11 +616,11 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
/* Some Widgets are deactivated at creation */
/* Some Widgets are deactivated at creation */
widg
->
setEnabled
(
true
);
widg
->
setEnabled
(
true
);
widg
->
show
();
widg
->
show
();
c
ontrolLayout
->
insertWidget
(
i_index
,
widg
);
newC
ontrolLayout
->
insertWidget
(
i_index
,
widg
);
}
}
/* QList and QBoxLayout don't act the same with insert() */
/* QList and QBoxLayout don't act the same with insert() */
if
(
i_index
<
0
)
i_index
=
c
ontrolLayout
->
count
()
-
1
;
if
(
i_index
<
0
)
i_index
=
newC
ontrolLayout
->
count
()
-
1
;
widgetList
.
insert
(
i_index
,
value
);
widgetList
.
insert
(
i_index
,
value
);
}
}
...
...
modules/gui/qt4/dialogs/vlm.cpp
View file @
ec0ceb44
...
@@ -606,12 +606,12 @@ void VLMBroadcast::stop()
...
@@ -606,12 +606,12 @@ void VLMBroadcast::stop()
/****************
/****************
* VLMSchedule
* VLMSchedule
****************/
****************/
VLMSchedule
::
VLMSchedule
(
const
QString
&
name
,
const
QString
&
input
,
VLMSchedule
::
VLMSchedule
(
const
QString
&
name
_
,
const
QString
&
input
,
const
QString
&
inputOptions
,
const
QString
&
inputOptions
,
const
QString
&
output
,
QDateTime
_schetime
,
const
QString
&
output
,
QDateTime
_schetime
,
QDateTime
_schedate
,
int
_scherepeatnumber
,
QDateTime
_schedate
,
int
_scherepeatnumber
,
int
_repeatDays
,
bool
enabled
,
VLMDialog
*
parent
)
int
_repeatDays
,
bool
enabled
,
VLMDialog
*
parent
)
:
VLMAWidget
(
name
,
input
,
inputOptions
,
output
,
enabled
,
parent
,
:
VLMAWidget
(
name
_
,
input
,
inputOptions
,
output
,
enabled
,
parent
,
QVLM_Schedule
)
QVLM_Schedule
)
{
{
nameLabel
->
setText
(
qtr
(
"Schedule: "
)
+
name
);
nameLabel
->
setText
(
qtr
(
"Schedule: "
)
+
name
);
...
@@ -632,10 +632,10 @@ void VLMSchedule::update()
...
@@ -632,10 +632,10 @@ void VLMSchedule::update()
/****************
/****************
* VLMVOD
* VLMVOD
****************/
****************/
VLMVod
::
VLMVod
(
const
QString
&
name
,
const
QString
&
input
,
VLMVod
::
VLMVod
(
const
QString
&
name
_
,
const
QString
&
input
,
const
QString
&
inputOptions
,
const
QString
&
output
,
const
QString
&
inputOptions
,
const
QString
&
output
,
bool
enabled
,
const
QString
&
_mux
,
VLMDialog
*
parent
)
bool
enabled
,
const
QString
&
_mux
,
VLMDialog
*
parent
)
:
VLMAWidget
(
name
,
input
,
inputOptions
,
output
,
enabled
,
parent
,
:
VLMAWidget
(
name
_
,
input
,
inputOptions
,
output
,
enabled
,
parent
,
QVLM_VOD
)
QVLM_VOD
)
{
{
nameLabel
->
setText
(
qtr
(
"VOD: "
)
+
name
);
nameLabel
->
setText
(
qtr
(
"VOD: "
)
+
name
);
...
...
modules/gui/qt4/input_manager.cpp
View file @
ec0ceb44
...
@@ -690,9 +690,9 @@ inline void InputManager::UpdateStats()
...
@@ -690,9 +690,9 @@ inline void InputManager::UpdateStats()
emit
statisticsUpdated
(
input_GetItem
(
p_input
)
);
emit
statisticsUpdated
(
input_GetItem
(
p_input
)
);
}
}
inline
void
InputManager
::
UpdateMeta
(
input_item_t
*
p_item
)
inline
void
InputManager
::
UpdateMeta
(
input_item_t
*
p_item
_
)
{
{
emit
metaChanged
(
p_item
);
emit
metaChanged
(
p_item
_
);
}
}
inline
void
InputManager
::
UpdateMeta
()
inline
void
InputManager
::
UpdateMeta
()
...
@@ -832,8 +832,8 @@ void InputManager::reverse()
...
@@ -832,8 +832,8 @@ void InputManager::reverse()
{
{
if
(
hasInput
()
)
if
(
hasInput
()
)
{
{
float
f_rate
=
var_GetFloat
(
p_input
,
"rate"
);
float
f_rate
_
=
var_GetFloat
(
p_input
,
"rate"
);
var_SetFloat
(
p_input
,
"rate"
,
-
f_rate
);
var_SetFloat
(
p_input
,
"rate"
,
-
f_rate
_
);
}
}
}
}
...
...
modules/gui/qt4/main_interface.cpp
View file @
ec0ceb44
...
@@ -365,7 +365,7 @@ void MainInterface::reloadPrefs()
...
@@ -365,7 +365,7 @@ void MainInterface::reloadPrefs()
}
}
}
}
void
MainInterface
::
createMainWidget
(
QSettings
*
s
ettings
)
void
MainInterface
::
createMainWidget
(
QSettings
*
creationS
ettings
)
{
{
/* Create the main Widget and the mainLayout */
/* Create the main Widget and the mainLayout */
QWidget
*
main
=
new
QWidget
;
QWidget
*
main
=
new
QWidget
;
...
@@ -394,17 +394,19 @@ void MainInterface::createMainWidget( QSettings *settings )
...
@@ -394,17 +394,19 @@ void MainInterface::createMainWidget( QSettings *settings )
}
}
mainLayout
->
insertWidget
(
1
,
stackCentralW
);
mainLayout
->
insertWidget
(
1
,
stackCentralW
);
stackWidgetsSizes
[
bgWidget
]
=
settings
->
value
(
"MainWindow/bgSize"
,
QSize
(
600
,
0
)
).
toSize
();
stackWidgetsSizes
[
bgWidget
]
=
creationSettings
->
value
(
"MainWindow/bgSize"
,
QSize
(
600
,
0
)
).
toSize
();
/* Resize even if no-auto-resize, because we are at creation */
/* Resize even if no-auto-resize, because we are at creation */
resizeStack
(
stackWidgetsSizes
[
bgWidget
].
width
(),
stackWidgetsSizes
[
bgWidget
].
height
()
);
resizeStack
(
stackWidgetsSizes
[
bgWidget
].
width
(),
stackWidgetsSizes
[
bgWidget
].
height
()
);
/* Create the CONTROLS Widget */
/* Create the CONTROLS Widget */
controls
=
new
ControlsWidget
(
p_intf
,
controls
=
new
ControlsWidget
(
p_intf
,
s
ettings
->
value
(
"MainWindow/adv-controls"
,
false
).
toBool
(),
this
);
creationS
ettings
->
value
(
"MainWindow/adv-controls"
,
false
).
toBool
(),
this
);
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
mainLayout
->
insertWidget
(
2
,
inputC
);
mainLayout
->
insertWidget
(
2
,
inputC
);
mainLayout
->
insertWidget
(
settings
->
value
(
"MainWindow/ToolbarPos"
,
0
).
toInt
()
?
0
:
3
,
mainLayout
->
insertWidget
(
creationSettings
->
value
(
"MainWindow/ToolbarPos"
,
0
).
toInt
()
?
0
:
3
,
controls
);
controls
);
/* Visualisation, disabled for now, they SUCK */
/* Visualisation, disabled for now, they SUCK */
...
...
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