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
955cbc60
Commit
955cbc60
authored
Apr 22, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Apr 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: preferences: Removing useless parameter.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
55878a08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+1
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+7
-7
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+6
-6
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+1
-1
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
955cbc60
...
@@ -504,7 +504,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -504,7 +504,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
void
AdvPrefsPanel
::
apply
()
void
AdvPrefsPanel
::
apply
()
{
{
foreach
(
ConfigControl
*
cfg
,
controls
)
foreach
(
ConfigControl
*
cfg
,
controls
)
cfg
->
doApply
(
p_intf
);
cfg
->
doApply
();
}
}
void
AdvPrefsPanel
::
clean
()
void
AdvPrefsPanel
::
clean
()
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
955cbc60
...
@@ -197,9 +197,9 @@ void InterfacePreviewWidget::setPreview( enum_style e_style )
...
@@ -197,9 +197,9 @@ void InterfacePreviewWidget::setPreview( enum_style e_style )
*************************************************************************/
*************************************************************************/
void
void
VStringConfigControl
::
doApply
(
intf_thread_t
*
p_intf
)
VStringConfigControl
::
doApply
()
{
{
config_PutPsz
(
p_
intf
,
getName
(),
qtu
(
getValue
()
)
);
config_PutPsz
(
p_
this
,
getName
(),
qtu
(
getValue
()
)
);
}
}
/*********** String **************/
/*********** String **************/
...
@@ -806,9 +806,9 @@ void ModuleListConfigControl::onUpdate()
...
@@ -806,9 +806,9 @@ void ModuleListConfigControl::onUpdate()
*************************************************************************/
*************************************************************************/
void
void
VIntConfigControl
::
doApply
(
intf_thread_t
*
p_intf
)
VIntConfigControl
::
doApply
()
{
{
config_PutInt
(
p_
intf
,
getName
(),
getValue
()
);
config_PutInt
(
p_
this
,
getName
(),
getValue
()
);
}
}
/*********** Integer **************/
/*********** Integer **************/
...
@@ -1091,9 +1091,9 @@ int BoolConfigControl::getValue() const
...
@@ -1091,9 +1091,9 @@ int BoolConfigControl::getValue() const
*************************************************************************/
*************************************************************************/
void
void
VFloatConfigControl
::
doApply
(
intf_thread_t
*
p_intf
)
VFloatConfigControl
::
doApply
()
{
{
config_PutFloat
(
p_
intf
,
getName
(),
getValue
()
);
config_PutFloat
(
p_
this
,
getName
(),
getValue
()
);
}
}
/*********** Float **************/
/*********** Float **************/
...
@@ -1389,7 +1389,7 @@ void KeySelectorControl::setTheKey()
...
@@ -1389,7 +1389,7 @@ void KeySelectorControl::setTheKey()
Qt
::
UserRole
,
shortcutValue
->
getValue
()
);
Qt
::
UserRole
,
shortcutValue
->
getValue
()
);
}
}
void
KeySelectorControl
::
doApply
(
intf_thread_t
*
)
void
KeySelectorControl
::
doApply
()
{
{
QTreeWidgetItem
*
it
;
QTreeWidgetItem
*
it
;
for
(
int
i
=
0
;
i
<
table
->
topLevelItemCount
()
;
i
++
)
for
(
int
i
=
0
;
i
<
table
->
topLevelItemCount
()
;
i
++
)
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
955cbc60
...
@@ -75,7 +75,7 @@ public slots:
...
@@ -75,7 +75,7 @@ public slots:
* Variable controls
* Variable controls
*******************************************************/
*******************************************************/
class
ConfigControl
:
public
QObject
class
ConfigControl
:
public
QObject
{
{
Q_OBJECT
Q_OBJECT
public:
public:
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
static
ConfigControl
*
createControl
(
vlc_object_t
*
,
static
ConfigControl
*
createControl
(
vlc_object_t
*
,
module_config_t
*
,
QWidget
*
,
module_config_t
*
,
QWidget
*
,
QGridLayout
*
,
int
line
=
0
);
QGridLayout
*
,
int
line
=
0
);
virtual
void
doApply
(
intf_thread_t
*
)
=
0
;
virtual
void
doApply
()
=
0
;
protected:
protected:
vlc_object_t
*
p_this
;
vlc_object_t
*
p_this
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
...
@@ -125,7 +125,7 @@ public:
...
@@ -125,7 +125,7 @@ public:
ConfigControl
(
a
,
b
)
{};
ConfigControl
(
a
,
b
)
{};
virtual
int
getValue
()
const
=
0
;
virtual
int
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_INTEGER
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_INTEGER
;
}
virtual
void
doApply
(
intf_thread_t
*
);
virtual
void
doApply
();
};
};
class
IntegerConfigControl
:
public
VIntConfigControl
class
IntegerConfigControl
:
public
VIntConfigControl
...
@@ -222,7 +222,7 @@ public:
...
@@ -222,7 +222,7 @@ public:
ConfigControl
(
a
,
b
)
{};
ConfigControl
(
a
,
b
)
{};
virtual
float
getValue
()
const
=
0
;
virtual
float
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_FLOAT
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_FLOAT
;
}
virtual
void
doApply
(
intf_thread_t
*
);
virtual
void
doApply
();
};
};
class
FloatConfigControl
:
public
VFloatConfigControl
class
FloatConfigControl
:
public
VFloatConfigControl
...
@@ -270,7 +270,7 @@ public:
...
@@ -270,7 +270,7 @@ public:
ConfigControl
(
a
,
b
)
{};
ConfigControl
(
a
,
b
)
{};
virtual
QString
getValue
()
const
=
0
;
virtual
QString
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_STRING
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_STRING
;
}
virtual
void
doApply
(
intf_thread_t
*
);
virtual
void
doApply
();
};
};
class
StringConfigControl
:
public
VStringConfigControl
class
StringConfigControl
:
public
VStringConfigControl
...
@@ -455,7 +455,7 @@ public:
...
@@ -455,7 +455,7 @@ public:
virtual
int
getType
()
const
{
return
CONFIG_ITEM_KEY
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_KEY
;
}
virtual
void
hide
()
{
table
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
hide
()
{
table
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
show
()
{
table
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
show
()
{
table
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
doApply
(
intf_thread_t
*
);
virtual
void
doApply
();
private:
private:
void
finish
();
void
finish
();
QLabel
*
label
;
QLabel
*
label
;
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
955cbc60
...
@@ -768,7 +768,7 @@ void SPrefsPanel::apply()
...
@@ -768,7 +768,7 @@ void SPrefsPanel::apply()
for
(
i
=
controls
.
begin
()
;
i
!=
controls
.
end
()
;
++
i
)
for
(
i
=
controls
.
begin
()
;
i
!=
controls
.
end
()
;
++
i
)
{
{
ConfigControl
*
c
=
qobject_cast
<
ConfigControl
*>
(
*
i
);
ConfigControl
*
c
=
qobject_cast
<
ConfigControl
*>
(
*
i
);
c
->
doApply
(
p_intf
);
c
->
doApply
();
}
}
switch
(
number
)
switch
(
number
)
...
...
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