mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Reduce layout margins on legend, legend order, python console. Change legend order font size to 10 same as legend
This commit is contained in:
parent
5193f60d2a
commit
c63b14976a
@ -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)
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user