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,
void AdvPrefsPanel::apply()
{
foreach ( ConfigControl *cfg, controls )
cfg->doApply( p_intf );
cfg->doApply();
}
void AdvPrefsPanel::clean()
......
......@@ -197,9 +197,9 @@ void InterfacePreviewWidget::setPreview( enum_style e_style )
*************************************************************************/
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 **************/
......@@ -806,9 +806,9 @@ void ModuleListConfigControl::onUpdate()
*************************************************************************/
void
VIntConfigControl::doApply( intf_thread_t *p_intf )
VIntConfigControl::doApply()
{
config_PutInt( p_intf, getName(), getValue() );
config_PutInt( p_this, getName(), getValue() );
}
/*********** Integer **************/
......@@ -1091,9 +1091,9 @@ int BoolConfigControl::getValue() const
*************************************************************************/
void
VFloatConfigControl::doApply( intf_thread_t *p_intf )
VFloatConfigControl::doApply()
{
config_PutFloat( p_intf, getName(), getValue() );
config_PutFloat( p_this, getName(), getValue() );
}
/*********** Float **************/
......@@ -1389,7 +1389,7 @@ void KeySelectorControl::setTheKey()
Qt::UserRole, shortcutValue->getValue() );
}
void KeySelectorControl::doApply( intf_thread_t* )
void KeySelectorControl::doApply()
{
QTreeWidgetItem *it;
for( int i = 0; i < table->topLevelItemCount() ; i++ )
......
......@@ -75,7 +75,7 @@ public slots:
* Variable controls
*******************************************************/
class ConfigControl : public QObject
class ConfigControl : public QObject
{
Q_OBJECT
public:
......@@ -99,7 +99,7 @@ public:
static ConfigControl * createControl( vlc_object_t*,
module_config_t*,QWidget*,
QGridLayout *, int line = 0 );
virtual void doApply( intf_thread_t *) = 0;
virtual void doApply() = 0;
protected:
vlc_object_t *p_this;
module_config_t *p_item;
......@@ -125,7 +125,7 @@ public:
ConfigControl(a,b) {};
virtual int getValue() const = 0;
virtual int getType() const { return CONFIG_ITEM_INTEGER; }
virtual void doApply( intf_thread_t *);
virtual void doApply();
};
class IntegerConfigControl : public VIntConfigControl
......@@ -222,7 +222,7 @@ public:
ConfigControl(a,b) {};
virtual float getValue() const = 0;
virtual int getType() const { return CONFIG_ITEM_FLOAT; }
virtual void doApply( intf_thread_t *);
virtual void doApply();
};
class FloatConfigControl : public VFloatConfigControl
......@@ -270,7 +270,7 @@ public:
ConfigControl(a,b) {};
virtual QString getValue() const = 0;
virtual int getType() const { return CONFIG_ITEM_STRING; }
virtual void doApply( intf_thread_t *);
virtual void doApply();
};
class StringConfigControl : public VStringConfigControl
......@@ -455,7 +455,7 @@ public:
virtual int getType() const { return CONFIG_ITEM_KEY; }
virtual void hide() { table->hide(); if( label ) label->hide(); }
virtual void show() { table->show(); if( label ) label->show(); }
virtual void doApply( intf_thread_t *);
virtual void doApply();
private:
void finish();
QLabel *label;
......
......@@ -768,7 +768,7 @@ void SPrefsPanel::apply()
for( i = controls.begin() ; i != controls.end() ; ++i )
{
ConfigControl *c = qobject_cast<ConfigControl *>(*i);
c->doApply( p_intf );
c->doApply();
}
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