Skip to content
Permalink
Browse files
Reduce layout margins on legend, legend order, python console. Change…
… legend order font size to 10 same as legend
  • Loading branch information
NathanW2 committed Dec 2, 2011
1 parent 5193f60 commit c63b14976a78ee5ae20e15f2806017a0e4e098cc
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 c63b149

Please sign in to comment.