Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 335dbf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/console.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/app/legend/qgslayerorder.cpp
Expand Up @@ -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 ) );
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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 );
Expand All @@ -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 );
Expand Down

0 comments on commit 335dbf1

Please sign in to comment.