Commit 955cbc60 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

qt4: preferences: Removing useless parameter.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 55878a08
...@@ -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()
......
...@@ -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++ )
......
...@@ -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;
......
...@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment