Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
25d71630
Commit
25d71630
authored
Apr 15, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Apr 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: preferences_widget: Adding some 'const'
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
6af2a7d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+8
-8
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+26
-26
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
25d71630
...
...
@@ -560,7 +560,7 @@ void StringListConfigControl::finish(module_config_t *p_module_config, bool byca
label
->
setBuddy
(
combo
);
}
QString
StringListConfigControl
::
getValue
()
QString
StringListConfigControl
::
getValue
()
const
{
return
combo
->
itemData
(
combo
->
currentIndex
()
).
toString
();
}
...
...
@@ -685,7 +685,7 @@ void ModuleConfigControl::finish( bool bycat )
label
->
setBuddy
(
combo
);
}
QString
ModuleConfigControl
::
getValue
()
QString
ModuleConfigControl
::
getValue
()
const
{
return
combo
->
itemData
(
combo
->
currentIndex
()
).
toString
();
}
...
...
@@ -803,7 +803,7 @@ void ModuleListConfigControl::finish( bool bycat )
}
#undef CHECKBOX_LISTS
QString
ModuleListConfigControl
::
getValue
()
QString
ModuleListConfigControl
::
getValue
()
const
{
assert
(
text
);
return
text
->
text
();
...
...
@@ -909,7 +909,7 @@ void IntegerConfigControl::finish()
label
->
setBuddy
(
spin
);
}
int
IntegerConfigControl
::
getValue
()
int
IntegerConfigControl
::
getValue
()
const
{
return
spin
->
value
();
}
...
...
@@ -960,7 +960,7 @@ IntegerRangeSliderConfigControl::IntegerRangeSliderConfigControl(
label
->
setBuddy
(
slider
);
}
int
IntegerRangeSliderConfigControl
::
getValue
()
int
IntegerRangeSliderConfigControl
::
getValue
()
const
{
return
slider
->
value
();
}
...
...
@@ -1081,7 +1081,7 @@ void IntegerListConfigControl::actionRequested( int i_action )
}
}
int
IntegerListConfigControl
::
getValue
()
int
IntegerListConfigControl
::
getValue
()
const
{
return
combo
->
itemData
(
combo
->
currentIndex
()
).
toInt
();
}
...
...
@@ -1127,7 +1127,7 @@ void BoolConfigControl::finish()
checkbox
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
}
int
BoolConfigControl
::
getValue
()
int
BoolConfigControl
::
getValue
()
const
{
return
checkbox
->
isChecked
();
}
...
...
@@ -1191,7 +1191,7 @@ void FloatConfigControl::finish()
label
->
setBuddy
(
spin
);
}
float
FloatConfigControl
::
getValue
()
float
FloatConfigControl
::
getValue
()
const
{
return
(
float
)
spin
->
value
();
}
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
25d71630
...
...
@@ -91,10 +91,10 @@ public:
widget
=
NULL
;
}
virtual
~
ConfigControl
()
{};
virtual
int
getType
()
=
0
;
const
char
*
getName
()
{
return
p_item
->
psz_name
;
}
QWidget
*
getWidget
()
{
assert
(
widget
);
return
widget
;
}
bool
isAdvanced
()
{
return
p_item
->
b_advanced
;
}
virtual
int
getType
()
const
=
0
;
const
char
*
getName
()
const
{
return
p_item
->
psz_name
;
}
QWidget
*
getWidget
()
const
{
assert
(
widget
);
return
widget
;
}
bool
isAdvanced
()
const
{
return
p_item
->
b_advanced
;
}
virtual
void
hide
()
{
getWidget
()
->
hide
();
};
virtual
void
show
()
{
getWidget
()
->
show
();
};
...
...
@@ -128,8 +128,8 @@ public:
VIntConfigControl
(
vlc_object_t
*
a
,
module_config_t
*
b
)
:
ConfigControl
(
a
,
b
)
{};
virtual
~
VIntConfigControl
()
{};
virtual
int
getValue
()
=
0
;
virtual
int
getType
()
{
return
CONFIG_ITEM_INTEGER
;
}
virtual
int
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_INTEGER
;
}
};
class
IntegerConfigControl
:
public
VIntConfigControl
...
...
@@ -143,9 +143,9 @@ public:
IntegerConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QSlider
*
);
virtual
~
IntegerConfigControl
()
{};
virtual
int
getValue
();
virtual
void
show
()
{
spin
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
hide
()
{
spin
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
int
getValue
()
const
;
virtual
void
show
()
const
{
spin
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
hide
()
const
{
spin
->
hide
();
if
(
label
)
label
->
hide
();
}
protected:
QSpinBox
*
spin
;
...
...
@@ -171,7 +171,7 @@ public:
IntegerRangeSliderConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QSlider
*
);
virtual
~
IntegerRangeSliderConfigControl
()
{};
virtual
int
getValue
();
virtual
int
getValue
()
const
;
protected:
QSlider
*
slider
;
private:
...
...
@@ -188,7 +188,7 @@ public:
IntegerListConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QComboBox
*
,
bool
);
virtual
~
IntegerListConfigControl
()
{};
virtual
int
getValue
();
virtual
int
getValue
()
const
;
virtual
void
hide
()
{
combo
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
show
()
{
combo
->
show
();
if
(
label
)
label
->
show
();
}
private:
...
...
@@ -208,10 +208,10 @@ public:
BoolConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QAbstractButton
*
,
bool
);
virtual
~
BoolConfigControl
()
{};
virtual
int
getValue
();
virtual
int
getValue
()
const
;
virtual
void
show
()
{
checkbox
->
show
();
}
virtual
void
hide
()
{
checkbox
->
hide
();
}
virtual
int
getType
()
{
return
CONFIG_ITEM_BOOL
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_BOOL
;
}
private:
QAbstractButton
*
checkbox
;
void
finish
();
...
...
@@ -229,8 +229,8 @@ public:
VFloatConfigControl
(
vlc_object_t
*
a
,
module_config_t
*
b
)
:
ConfigControl
(
a
,
b
)
{};
virtual
~
VFloatConfigControl
()
{};
virtual
float
getValue
()
=
0
;
virtual
int
getType
()
{
return
CONFIG_ITEM_FLOAT
;
}
virtual
float
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_FLOAT
;
}
};
class
FloatConfigControl
:
public
VFloatConfigControl
...
...
@@ -242,7 +242,7 @@ public:
FloatConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QDoubleSpinBox
*
);
virtual
~
FloatConfigControl
()
{};
virtual
float
getValue
();
virtual
float
getValue
()
const
;
virtual
void
show
()
{
spin
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
hide
()
{
spin
->
hide
();
if
(
label
)
label
->
hide
();
}
...
...
@@ -278,8 +278,8 @@ public:
VStringConfigControl
(
vlc_object_t
*
a
,
module_config_t
*
b
)
:
ConfigControl
(
a
,
b
)
{};
virtual
~
VStringConfigControl
()
{};
virtual
QString
getValue
()
=
0
;
virtual
int
getType
()
{
return
CONFIG_ITEM_STRING
;
}
virtual
QString
getValue
()
const
=
0
;
virtual
int
getType
()
const
{
return
CONFIG_ITEM_STRING
;
}
};
class
StringConfigControl
:
public
VStringConfigControl
...
...
@@ -291,7 +291,7 @@ public:
StringConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QLineEdit
*
,
bool
pwd
);
virtual
~
StringConfigControl
()
{};
virtual
QString
getValue
()
{
return
text
->
text
();
};
virtual
QString
getValue
()
const
{
return
text
->
text
();
};
virtual
void
show
()
{
text
->
show
();
if
(
label
)
label
->
show
();
}
virtual
void
hide
()
{
text
->
hide
();
if
(
label
)
label
->
hide
();
}
private:
...
...
@@ -309,7 +309,7 @@ public:
FileConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QLineEdit
*
,
QPushButton
*
);
virtual
~
FileConfigControl
()
{};
virtual
QString
getValue
()
{
return
text
->
text
();
};
virtual
QString
getValue
()
const
{
return
text
->
text
();
};
virtual
void
show
()
{
text
->
show
();
if
(
label
)
label
->
show
();
browse
->
show
();
}
virtual
void
hide
()
{
text
->
hide
();
if
(
label
)
label
->
hide
();
browse
->
hide
();
}
public
slots
:
...
...
@@ -343,7 +343,7 @@ public:
FontConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QFontComboBox
*
);
virtual
~
FontConfigControl
()
{};
virtual
QString
getValue
(){
return
font
->
currentFont
().
family
();
}
virtual
QString
getValue
()
const
{
return
font
->
currentFont
().
family
();
}
protected:
QLabel
*
label
;
QFontComboBox
*
font
;
...
...
@@ -357,7 +357,7 @@ public:
ModuleConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QComboBox
*
,
bool
);
virtual
~
ModuleConfigControl
()
{};
virtual
QString
getValue
();
virtual
QString
getValue
()
const
;
virtual
void
hide
()
{
combo
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
show
()
{
combo
->
show
();
if
(
label
)
label
->
show
();
}
private:
...
...
@@ -381,7 +381,7 @@ public:
// ModuleListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
// QComboBox*, bool );
virtual
~
ModuleListConfigControl
();
virtual
QString
getValue
();
virtual
QString
getValue
()
const
;
virtual
void
hide
();
virtual
void
show
();
public
slots
:
...
...
@@ -402,7 +402,7 @@ public:
StringListConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QComboBox
*
,
bool
);
virtual
~
StringListConfigControl
()
{};
virtual
QString
getValue
();
virtual
QString
getValue
()
const
;
virtual
void
hide
()
{
combo
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
show
()
{
combo
->
show
();
if
(
label
)
label
->
show
();
}
QComboBox
*
combo
;
...
...
@@ -467,7 +467,7 @@ class KeySelectorControl : public ConfigControl
public:
KeySelectorControl
(
vlc_object_t
*
,
module_config_t
*
,
QWidget
*
,
QGridLayout
*
,
int
&
);
virtual
int
getType
()
{
return
CONFIG_ITEM_KEY
;
}
virtual
int
getType
()
const
{
return
CONFIG_ITEM_KEY
;
}
virtual
~
KeySelectorControl
()
{};
virtual
void
hide
()
{
table
->
hide
();
if
(
label
)
label
->
hide
();
}
virtual
void
show
()
{
table
->
show
();
if
(
label
)
label
->
show
();
}
...
...
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