Commit 284187d1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4 - About dialog, forgot in previous commit.

parent 348fbef1
...@@ -77,11 +77,22 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -77,11 +77,22 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
layout->addWidget( tab, 1, 0, 1, 2 ); layout->addWidget( tab, 1, 0, 1, 2 );
layout->addWidget( closeButton, 2, 1, 1, 1 ); layout->addWidget( closeButton, 2, 1, 1, 1 );
QFile *licenseFile = new QFile( "/usr/src/vlc/COPYING" ); /* GPL License */
QTextEdit *licenseEdit = new QTextEdit( this ); QFile *licenseFile = new QFile( "/usr/src/vlc/COPYING" );
licenseEdit->setText( licenseFile->readAll() ); QTextEdit *licenseEdit = new QTextEdit( this );
licenseEdit->setReadOnly( true ); licenseEdit->setText( licenseFile->readAll() );
licenseEdit->setReadOnly( true );
/* People who helped */
QFile *thanksFile = new QFile( "/usr/src/vlc/THANKS" );
QTextEdit *thanksEdit = new QTextEdit( this );
thanksEdit->setText( thanksFile->readAll() );
thanksEdit->setReadOnly( true );
/* add the tabs to the Tabwidget */
tab->addTab( NULL, _( "Information" ) );
tab->addTab( NULL, _( "Authors" ) );
tab->addTab( thanksEdit, _("Thanks") );
tab->addTab( licenseEdit, _("Distribution License") ); tab->addTab( licenseEdit, _("Distribution License") );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
......
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