Commit 94757879 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

[Qt] Remove QTimer wher we can.

parent 631f3415
......@@ -49,6 +49,7 @@
#include <QResizeEvent>
#include <QDate>
#include <QSignalMapper>
#include <QTimer>
#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
......
......@@ -53,6 +53,8 @@ class QAbstractButton;
class VolumeClickHandler;
class QSignalMapper;
class QTimer;
typedef enum buttonType_e
{
PLAY_BUTTON,
......
......@@ -546,6 +546,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
StatsTree->setColumnWidth( 1 , 200 );
layout->addWidget(StatsTree, 1, 0 );
CONNECT( THEMIM->getIM() , statisticsUpdated( input_item_t* ),
this, update( input_item_t* ) );
}
......
......@@ -111,10 +111,6 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
if( p_item )
update( p_item, true, true );
if( stats )
CONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t*),
this, updateStats( input_item_t*));
readSettings( "Mediainfo", QSize( 600 , 480 ) );
}
......@@ -161,11 +157,6 @@ void MediaInfoDialog::update( input_thread_t *p_input )
vlc_object_release( p_input );
}
void MediaInfoDialog::updateStats( input_item_t *p_input)
{
update( p_input, false, false);
}
void MediaInfoDialog::update( input_item_t *p_item,
bool update_info,
bool update_meta )
......
......@@ -86,7 +86,6 @@ public slots:
void update( input_item_t *, bool, bool );
private slots:
void updateStats( input_item_t *);
void close();
void clear();
void saveMeta();
......
......@@ -64,7 +64,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
msgLayout->addWidget( messages, 0, 0, 1, 0 );
mainTab->addTab( msgWidget, qtr( "Messages" ) );
ON_TIMEOUT( updateLog() );
// ON_TIMEOUT( updateLog() );
/* Modules tree */
......
......@@ -58,8 +58,6 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf ) :
QObject( NULL ), p_intf( _p_intf )
{
b_isDying = false;
fixed_timer = new QTimer( this );
fixed_timer->start( 150 /* milliseconds */ );
menusMapper = new QSignalMapper();
CONNECT( menusMapper, mapped(QObject *), this, menuAction( QObject *) );
......@@ -85,7 +83,6 @@ DialogsProvider::~DialogsProvider()
UpdateDialog::killInstance();
#endif
fixed_timer->stop();
delete menusMapper;
delete menusUpdateMapper;
delete SDMapper;
......
......@@ -38,7 +38,6 @@
#include "dialogs/open.hpp"
#include <QObject>
#include <QTimer>
#include <QApplication>
#define ADD_FILTER_MEDIA( string ) \
......@@ -109,7 +108,6 @@ public:
return ( instance != NULL );
}
virtual ~DialogsProvider();
QTimer *fixed_timer;
QStringList showSimpleOpen( QString help = QString(),
int filters = EXT_FILTER_MEDIA |
......
......@@ -94,7 +94,6 @@ struct intf_sys_t
#define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
#define BUTTONACT( b, a ) connect( b, SIGNAL( clicked() ), this, SLOT(a) )
#define ON_TIMEOUT( act ) CONNECT( THEDP->fixed_timer, timeout(), this, act )
#define BUTTON_SET( button, text, tooltip ) \
button->setText( text ); \
......
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