[Marble-commits] KDE/kdeedu/marble/src
Dennis Nienhüser
earthwings at gentoo.org
Wed Oct 6 22:04:09 CEST 2010
SVN commit 1183282 by nienhueser:
use a horizontal layout which uses the available space better
M +5 -5 QtMainWindow.cpp
--- trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp #1183281:1183282
@@ -34,7 +34,7 @@
#include <QtGui/QPrintDialog>
#include <QtGui/QPrinter>
#include <QtGui/QDialogButtonBox>
-#include <QtGui/QVBoxLayout>
+#include <QtGui/QHBoxLayout>
#include <QtGui/QClipboard>
@@ -1122,10 +1122,10 @@
MapViewWidget *mapViewWidget = new MapViewWidget( m_mapViewDialog );
mapViewWidget->setMarbleWidget( m_controlView->marbleWidget() );
- QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Horizontal, m_mapViewDialog );
+ QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Vertical, m_mapViewDialog );
connect(buttonBox, SIGNAL( accepted() ), m_mapViewDialog, SLOT( accept() ) );
- QVBoxLayout* layout = new QVBoxLayout;
+ QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget( mapViewWidget );
layout->addWidget( buttonBox );
m_mapViewDialog->setLayout( layout );
@@ -1155,10 +1155,10 @@
m_routingDialog->setWindowTitle( tr( "Routing - Marble" ) );
RoutingWidget *routingWidget = new RoutingWidget( m_controlView->marbleWidget(), m_routingDialog );
- QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Horizontal, m_routingDialog );
+ QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Vertical, m_routingDialog );
connect(buttonBox, SIGNAL( accepted() ), m_routingDialog, SLOT( accept() ) );
- QVBoxLayout* layout = new QVBoxLayout;
+ QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget( routingWidget );
layout->addWidget( buttonBox );
m_routingDialog->setLayout( layout );
More information about the Marble-commits
mailing list