Reduce layout margins on legend, legend order, python console. Change legend order font size to 10 same as legend

This commit is contained in:
Nathan Woodrow 2011-12-02 14:07:39 +10:00
parent 5193f60d2a
commit c63b14976a
3 changed files with 4 additions and 1 deletions

View File

@ -86,6 +86,7 @@ class PythonConsole(QDockWidget):
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)

View File

@ -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 ) );

View File

@ -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 );