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

* Qt4/Information: Put the close button in a better place.

parent 92b376b0
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
#include <QTabWidget> #include <QTabWidget>
#include <QBoxLayout> #include <QGridLayout>
#include "dialogs/streaminfo.hpp" #include "dialogs/streaminfo.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
...@@ -37,13 +37,13 @@ StreamInfoDialog::StreamInfoDialog( intf_thread_t *_p_intf, bool _main_input ) : ...@@ -37,13 +37,13 @@ StreamInfoDialog::StreamInfoDialog( intf_thread_t *_p_intf, bool _main_input ) :
QVLCFrame( _p_intf ), main_input( _main_input ) QVLCFrame( _p_intf ), main_input( _main_input )
{ {
setWindowTitle( _("Stream information" ) ); setWindowTitle( _("Stream information" ) );
QBoxLayout *layout = new QBoxLayout(QBoxLayout::TopToBottom,this); QGridLayout *layout = new QGridLayout(this);
setGeometry(0,0,470,550); setGeometry(0,0,470,550);
IT = new InfoTab( this, p_intf) ; IT = new InfoTab( this, p_intf) ;
QPushButton *closeButton = new QPushButton(qtr("&Close")); QPushButton *closeButton = new QPushButton(qtr("&Close"));
layout->addWidget(IT); layout->addWidget(IT,0,0,1,3);
layout->addWidget(closeButton); layout->addWidget(closeButton,1,2);
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
ON_TIMEOUT( update() ); ON_TIMEOUT( update() );
......
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