]> git.sesse.net Git - vlc/commitdiff
Qt4: Small corrections on previous commit.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 29 Nov 2006 20:37:57 +0000 (20:37 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 29 Nov 2006 20:37:57 +0000 (20:37 +0000)
modules/gui/qt4/dialogs/help.cpp

index a23db37c89edb05ea30fd2271e1ebd9ba3eafdc1..b3b06562a81838f782415f43b5f01f9ddb7a79c3 100644 (file)
 #include "util/qvlcframe.hpp"
 #include "qt4.hpp"
 
+#include <QTextBrowser>
+
 HelpDialog *HelpDialog::instance = NULL;
 
 HelpDialog::HelpDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 {
     setWindowTitle( qtr( "Help" ) );
-    resize(600, 400);
+    resize(450, 500);
 
     QGridLayout *layout = new QGridLayout(this);
+    QTextBrowser *helpBrowser = new QTextBrowser(this);
     QPushButton *closeButton = new QPushButton(qtr("&Close"));
 
+    layout->addWidget(helpBrowser, 0, 0, 1, 0);
+    layout->addWidget(closeButton, 1, 3);
+
     BUTTONACT( closeButton, close() );
 }
 
@@ -53,11 +59,12 @@ AboutDialog *AboutDialog::instance = NULL;
 AboutDialog::AboutDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 {
     setWindowTitle( qtr( "About" ) );
-    resize(600, 400);
+    resize(250, 250);
 
     QGridLayout *layout = new QGridLayout(this);
     QPushButton *closeButton = new QPushButton(qtr("&Close"));
 
+    layout->addWidget(closeButton, 1, 3);
     BUTTONACT( closeButton, close() );
 }