]> git.sesse.net Git - vlc/commitdiff
qt4: preferences: Removing useless parameter.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Fri, 22 Apr 2011 15:07:21 +0000 (17:07 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 22 Apr 2011 15:14:26 +0000 (17:14 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/simple_preferences.cpp

index 9f875cfec7575ec22104e06d244a8e373394f27d..49a217ba5ca1c6ba22cd867929393094b943d762 100644 (file)
@@ -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()
index dfea83f96ab54fa935f52c541ab4b36389a39e97..530f6fb3a71d006da623203001ba70fa397fc235 100644 (file)
@@ -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++ )
index 785e17c0eff30401e0b2a5ce3bd39cec040281d1..e0dc46f86b9f51933d33073ba4636e6668f21cb2 100644 (file)
@@ -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;
index 4f1a9326e122547e006db6bed41ee3b5dffb6cac..d3ad7db6ca2eb4ac038ac68b972249f4dfdbeae0 100644 (file)
@@ -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 )