Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix margin addition in QgsOptionsDialogBase
  • Loading branch information
dakcarto committed Apr 13, 2013
1 parent d87eb2a commit 602f09d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -18,6 +18,7 @@

#include <QDialog>
#include <QDialogButtonBox>
#include <QLayout>
#include <QListWidget>
#include <QMessageBox>
#include <QScrollBar>
Expand Down Expand Up @@ -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" );
Expand Down

0 comments on commit 602f09d

Please sign in to comment.