Skip to content
Permalink
Browse files

Fix margin addition in QgsOptionsDialogBase

  • Loading branch information
dakcarto committed Apr 13, 2013
1 parent d87eb2a commit 602f09d4d54c8a97782c971aa5ca738bb76c8877
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsoptionsdialogbase.cpp
@@ -18,6 +18,7 @@

#include <QDialog>
#include <QDialogButtonBox>
#include <QLayout>
#include <QListWidget>
#include <QMessageBox>
#include <QScrollBar>
@@ -45,6 +46,11 @@ QgsOptionsDialogBase::~QgsOptionsDialogBase()

void QgsOptionsDialogBase::initOptionsBase( bool restoreUi )
{
// don't add to dialog margins
// redefine now, or those in inherited .ui file will be added
if ( layout() )
layout()->setContentsMargins( 12, 12, 12, 12 ); // Qt default spacing

// start with copy of qgsoptionsdialog_template.ui to ensure existence of these objects
mOptListWidget = findChild<QListWidget*>( "mOptionsListWidget" );
mOptStackedWidget = findChild<QStackedWidget*>( "mOptionsStackedWidget" );

0 comments on commit 602f09d

Please sign in to comment.
You can’t perform that action at this time.