Commit a1a5b210 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] small layout improvement in about-module tab

parent 577f58de
......@@ -212,6 +212,8 @@ WQtModuleMetaInfo::WQtModuleMetaInfo( WModule::SPtr module, QWidget* parent ):
// some layout to place the webview
QVBoxLayout *layout = new QVBoxLayout();
setLayout( layout );
layout->setSpacing( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );
#ifndef QT4GUI_NOWEBKIT
// create the QT webview
......@@ -237,20 +239,25 @@ WQtModuleMetaInfo::WQtModuleMetaInfo( WModule::SPtr module, QWidget* parent ):
// add the buttons
QToolButton* homeBtn = new QToolButton( toolbar );
homeBtn->setDefaultAction( homeAction );
tbLayout->addWidget( homeBtn );
homeBtn->setToolButtonStyle( Qt::ToolButtonTextBesideIcon );
QToolButton* backBtn = new QToolButton( toolbar );
backBtn->setDefaultAction( page->action( QWebPage::Back ) );
tbLayout->addWidget( backBtn );
QToolButton* fwdBtn = new QToolButton( toolbar );
fwdBtn->setDefaultAction( page->action( QWebPage::Forward ) );
tbLayout->addWidget( backBtn );
tbLayout->addWidget( fwdBtn );
tbLayout->addStretch( 100000 );
tbLayout->addWidget( homeBtn );
// build widget
layout->addWidget( toolbar );
layout->addWidget( view );
layout->setStretchFactor( toolbar, 0 );
layout->setStretchFactor( view, 1 );
resetContent();
// the home action triggers reseContent
......
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