Commit 6a5e8468 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

EPG: fix QLabel look and saveGeometry

parent 44a2e5fa
...@@ -55,6 +55,8 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -55,6 +55,8 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
description = new QLabel( this ); description = new QLabel( this );
description->setFrameStyle( QFrame::Sunken | QFrame::StyledPanel ); description->setFrameStyle( QFrame::Sunken | QFrame::StyledPanel );
description->setAutoFillBackground( true ); description->setAutoFillBackground( true );
description->setWordWrap( true );
description->setAlignment( Qt::AlignLeft | Qt::AlignTop );
QPalette palette; QPalette palette;
palette.setBrush(QPalette::Active, QPalette::Window, palette.brush( QPalette::Base ) ); palette.setBrush(QPalette::Active, QPalette::Window, palette.brush( QPalette::Base ) );
...@@ -73,18 +75,19 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -73,18 +75,19 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
QPushButton *update = new QPushButton( "Update" ); //Temporary to test QPushButton *update = new QPushButton( "Update" ); //Temporary to test
layout->addWidget( update, 0, Qt::AlignRight ); layout->addWidget( update, 0, Qt::AlignRight );
BUTTONACT( update, update() ); BUTTONACT( update, updateInfos() );
QPushButton *close = new QPushButton( qtr( "&Close" ) ); QPushButton *close = new QPushButton( qtr( "&Close" ) );
layout->addWidget( close, 0, Qt::AlignRight ); layout->addWidget( close, 0, Qt::AlignRight );
BUTTONACT( close, close() ); BUTTONACT( close, close() );
updateInfos();
resize( 650, 400 ); readSettings( "EPGDialog", QSize( 650, 450 ) );
} }
EpgDialog::~EpgDialog() EpgDialog::~EpgDialog()
{ {
writeSettings( "EPGDialog" );
} }
void EpgDialog::showEvent( EPGEvent *event ) void EpgDialog::showEvent( EPGEvent *event )
...@@ -98,7 +101,7 @@ void EpgDialog::showEvent( EPGEvent *event ) ...@@ -98,7 +101,7 @@ void EpgDialog::showEvent( EPGEvent *event )
description->setText( event->shortDescription ); description->setText( event->shortDescription );
} }
void EpgDialog::update() void EpgDialog::updateInfos()
{ {
if( !THEMIM->getInput() ) return; if( !THEMIM->getInput() ) return;
......
...@@ -45,7 +45,7 @@ private: ...@@ -45,7 +45,7 @@ private:
private slots: private slots:
void showEvent( EPGEvent * ); void showEvent( EPGEvent * );
void update(); void updateInfos();
}; };
#endif #endif
......
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