#include <QResizeEvent>
#include <QDate>
#include <QSignalMapper>
+#include <QTimer>
#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
class VolumeClickHandler;
class QSignalMapper;
+class QTimer;
+
typedef enum buttonType_e
{
PLAY_BUTTON,
StatsTree->setColumnWidth( 1 , 200 );
layout->addWidget(StatsTree, 1, 0 );
+
CONNECT( THEMIM->getIM() , statisticsUpdated( input_item_t* ),
this, update( input_item_t* ) );
}
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 ) );
}
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 )
void update( input_item_t *, bool, bool );
private slots:
- void updateStats( input_item_t *);
void close();
void clear();
void saveMeta();
msgLayout->addWidget( messages, 0, 0, 1, 0 );
mainTab->addTab( msgWidget, qtr( "Messages" ) );
- ON_TIMEOUT( updateLog() );
+ // ON_TIMEOUT( updateLog() );
/* Modules tree */
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 *) );
UpdateDialog::killInstance();
#endif
- fixed_timer->stop();
delete menusMapper;
delete menusUpdateMapper;
delete SDMapper;
#include "dialogs/open.hpp"
#include <QObject>
-#include <QTimer>
#include <QApplication>
#define ADD_FILTER_MEDIA( string ) \
return ( instance != NULL );
}
virtual ~DialogsProvider();
- QTimer *fixed_timer;
QStringList showSimpleOpen( QString help = QString(),
int filters = EXT_FILTER_MEDIA |
#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 ); \