Commit 27ae51dd authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: remove dead code

parent d9c9be81
/*****************************************************************************
* extended_panels.cpp : Extended controls panels
****************************************************************************
* Copyright (C) 2006-2012 the VideoLAN team
* Copyright (C) 2006-2013 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
......@@ -61,29 +61,6 @@ static char *ChangeFiltersString( struct intf_thread_t *p_intf, const char *psz_
static void ChangeAFiltersString( struct intf_thread_t *p_intf, const char *psz_name, bool b_add );
static void ChangeVFiltersString( struct intf_thread_t *p_intf, const char *psz_name, bool b_add );
#if 0
class ConfClickHandler : public QObject
{
public:
ConfClickHandler( intf_thread_t *_p_intf, ExtVideo *_e ) : QObject ( _e ) {
e = _e; p_intf = _p_intf;
}
virtual ~ConfClickHandler() {}
bool eventFilter( QObject *obj, QEvent *evt )
{
if( evt->type() == QEvent::MouseButtonPress )
{
e->gotoConf( obj );
return true;
}
return false;
}
private:
ExtVideo* e;
intf_thread_t *p_intf;
};
#endif
const QString ModuleFromWidgetName( QObject *obj )
{
return obj->objectName().replace( "Enable","" );
......@@ -708,28 +685,6 @@ void ExtVideo::updateFilterOptions()
if( p_obj ) vlc_object_release( p_obj );
}
#if 0
void ExtVideo::gotoConf( QObject* src )
{
#define SHOWCONF( module ) \
if( src->objectName().contains( module ) ) \
{ \
PrefsDialog::getInstance( p_intf )->showModulePrefs( module ); \
return; \
}
SHOWCONF( "clone" );
SHOWCONF( "magnify" );
SHOWCONF( "wave" );
SHOWCONF( "ripple" );
SHOWCONF( "invert" );
SHOWCONF( "puzzle" );
SHOWCONF( "wall" );
SHOWCONF( "gradient" );
SHOWCONF( "colorthres" );
SHOWCONF( "anaglyph" )
}
#endif
/**********************************************************************
* v4l2 controls
**********************************************************************/
......
......@@ -46,7 +46,6 @@ class ExtVideo: public QObject
friend class ExtendedDialog;
public:
ExtVideo( struct intf_thread_t *, QTabWidget * );
/*void gotoConf( QObject* );*/
private:
Ui::ExtVideoWidget ui;
QSignalMapper* filterMapper;
......
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