Commit 9fcf0621 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - MediaInfo: spaces cleanup

parent 05d26437
...@@ -365,4 +365,3 @@ void InfoPanel::clear() ...@@ -365,4 +365,3 @@ void InfoPanel::clear()
{ {
InfoTree->clear(); InfoTree->clear();
} }
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <vlc_meta.h> #include <vlc_meta.h>
#include <QWidget> #include <QWidget>
#include <QTabWidget>
#ifdef HAVE_LIMITS_H #ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
......
...@@ -48,31 +48,31 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput, ...@@ -48,31 +48,31 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
setWindowTitle( qtr( "Media information" ) ); setWindowTitle( qtr( "Media information" ) );
resize( 600 , 450 ); resize( 600 , 450 );
QGridLayout *layout = new QGridLayout(this); QGridLayout *layout = new QGridLayout( this );
IT = new QTabWidget; IT = new QTabWidget;
MP = new MetaPanel( IT, p_intf ); MP = new MetaPanel( IT, p_intf );
IT->addTab( MP, qtr( "&General" ) ); IT->addTab( MP, qtr( "&General" ) );
EMP = new ExtraMetaPanel( IT, p_intf ); EMP = new ExtraMetaPanel( IT, p_intf );
IT->addTab( EMP, qtr( "&Extra Metadata" ) ); IT->addTab( EMP, qtr( "&Extra Metadata" ) );
IP = new InfoPanel( IT, p_intf); IP = new InfoPanel( IT, p_intf );
IT->addTab( IP, qtr("&Codec Details")); IT->addTab( IP, qtr( "&Codec Details" ) );
if( stats ) if( stats )
{ {
ISP = new InputStatsPanel( IT, p_intf ); ISP = new InputStatsPanel( IT, p_intf );
IT->addTab(ISP, qtr("&Stats")); IT->addTab( ISP, qtr( "&Stats" ) );
} }
QPushButton *closeButton = new QPushButton(qtr("&Close")); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
closeButton->setDefault( true ); closeButton->setDefault( true );
layout->addWidget( IT, 0, 0, 1, 3); layout->addWidget( IT, 0, 0, 1, 3 );
layout->addWidget(closeButton,1,2); layout->addWidget( closeButton, 1, 2 );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
ON_TIMEOUT( update() );
if( mainInput ) { if( mainInput ) {
ON_TIMEOUT( update() );
var_AddCallback( THEPL, "item-change", ItemChanged, this ); var_AddCallback( THEPL, "item-change", ItemChanged, this );
} }
} }
...@@ -88,11 +88,11 @@ MediaInfoDialog::~MediaInfoDialog() ...@@ -88,11 +88,11 @@ MediaInfoDialog::~MediaInfoDialog()
void MediaInfoDialog::showTab(int i_tab=0) void MediaInfoDialog::showTab(int i_tab=0)
{ {
this->show(); this->show();
IT->setCurrentIndex(i_tab); IT->setCurrentIndex( i_tab );
} }
static int ItemChanged( vlc_object_t *p_this, const char *psz_var, static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param ) vlc_value_t oldval, vlc_value_t newval, void *param )
{ {
MediaInfoDialog *p_d = (MediaInfoDialog *)param; MediaInfoDialog *p_d = (MediaInfoDialog *)param;
p_d->need_update = VLC_TRUE; p_d->need_update = VLC_TRUE;
...@@ -109,14 +109,14 @@ void MediaInfoDialog::setInput(input_item_t *p_input) ...@@ -109,14 +109,14 @@ void MediaInfoDialog::setInput(input_item_t *p_input)
void MediaInfoDialog::update() void MediaInfoDialog::update()
{ {
msg_Dbg( p_intf, "updating" ); msg_Dbg( p_intf, "updating MetaData Info" );
/* Timer runs at 150 ms, dont' update more than 2 times per second */ /* Timer runs at 150 ms, dont' update more than 2 times per second */
if( i_runs % 3 != 0 ) return; if( i_runs % 3 != 0 ) return;
i_runs++; i_runs++;
/* Get Input and clear if non-existant */ /* Get Input and clear if non-existant */
input_thread_t *p_input = input_thread_t *p_input =
MainInputManager::getInstance( p_intf )->getInput(); MainInputManager::getInstance( p_intf )->getInput();
if( !p_input || p_input->b_dead ) if( !p_input || p_input->b_dead )
{ {
clear(); clear();
...@@ -134,7 +134,7 @@ void MediaInfoDialog::update() ...@@ -134,7 +134,7 @@ void MediaInfoDialog::update()
} }
void MediaInfoDialog::update( input_item_t *p_item, bool update_info, void MediaInfoDialog::update( input_item_t *p_item, bool update_info,
bool update_meta ) bool update_meta )
{ {
if( update_info ) if( update_info )
IP->update( p_item ); IP->update( p_item );
...@@ -155,7 +155,6 @@ void MediaInfoDialog::clear() ...@@ -155,7 +155,6 @@ void MediaInfoDialog::clear()
if( stats ) ISP->clear(); if( stats ) ISP->clear();
} }
void MediaInfoDialog::close() void MediaInfoDialog::close()
{ {
this->toggleVisible(); this->toggleVisible();
......
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