Skip to content
Permalink
Browse files
Merge pull request #69 from NathanW2/ui-tweaks
Reduce layout margins on legend, legend order, python console. Change le...
  • Loading branch information
timlinux committed Dec 2, 2011
2 parents 7c128e1 + c63b149 commit 335dbf16313e42bd80f84c05f497fc8ac85e1ae0
Showing with 4 additions and 1 deletion.
  1. +1 −0 python/console.py
  2. +1 −1 src/app/legend/qgslayerorder.cpp
  3. +2 −0 src/app/qgisapp.cpp
@@ -86,6 +86,7 @@ def __init__(self, parent=None):
self.setAllowedAreas(Qt.BottomDockWidgetArea)
self.widget = QWidget()
self.l = QVBoxLayout(self.widget)
self.l.setMargin(0)
self.edit = PythonEdit()
self.l.addWidget(self.edit)
self.setWidget(self.widget)
@@ -64,7 +64,7 @@ QgsLayerOrder::QgsLayerOrder( QgsLegend *legend, QWidget * parent, const char *n
setSelectionMode( QAbstractItemView::ExtendedSelection );
setDragEnabled( false );
setAutoScroll( true );
QFont f( "Arial", 11, QFont::Bold );
QFont f( "Arial", 10, QFont::Bold );
setFont( f );
QPalette palette;
palette.setColor( backgroundRole(), QColor( 192, 192, 192 ) );
@@ -1730,6 +1730,7 @@ void QgisApp::initLegend()

QWidget *w = new QWidget( this );
QLayout *l = new QVBoxLayout;
l->setMargin(0);
l->addWidget( mMapLegend );
l->addWidget( legendCb );
w->setLayout( l );
@@ -1746,6 +1747,7 @@ void QgisApp::initLegend()

w = new QWidget( this );
l = new QVBoxLayout;
l->setMargin(0);
l->addWidget( mMapLayerOrder );
l->addWidget( orderCb );
w->setLayout( l );

0 comments on commit 335dbf1

Please sign in to comment.