Skip to content

Commit f9f5448

Browse files
committedOct 3, 2012
Don't show the layer order checkbox on legend, only on layer order panel. Greetings from QGIS Hackfest in Essen
1 parent 14b87d5 commit f9f5448

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,22 +1955,16 @@ void QgisApp::initLegend()
19551955
mLegendDock->setObjectName( "Legend" );
19561956
mLegendDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
19571957

1958-
QCheckBox *legendCb = new QCheckBox( tr( "Control rendering order" ) );
1959-
legendCb->setChecked( true );
1960-
19611958
QCheckBox *orderCb = new QCheckBox( tr( "Control rendering order" ) );
19621959
orderCb->setChecked( false );
19631960

1964-
connect( legendCb, SIGNAL( toggled( bool ) ), mMapLegend, SLOT( setUpdateDrawingOrder( bool ) ) );
19651961
connect( orderCb, SIGNAL( toggled( bool ) ), mMapLegend, SLOT( unsetUpdateDrawingOrder( bool ) ) );
1966-
connect( mMapLegend, SIGNAL( updateDrawingOrderChecked( bool ) ), legendCb, SLOT( setChecked( bool ) ) );
19671962
connect( mMapLegend, SIGNAL( updateDrawingOrderUnchecked( bool ) ), orderCb, SLOT( setChecked( bool ) ) );
19681963

19691964
QWidget *w = new QWidget( this );
19701965
QLayout *l = new QVBoxLayout;
19711966
l->setMargin( 0 );
19721967
l->addWidget( mMapLegend );
1973-
l->addWidget( legendCb );
19741968
w->setLayout( l );
19751969
mLegendDock->setWidget( w );
19761970
addDockWidget( Qt::LeftDockWidgetArea, mLegendDock );

0 commit comments

Comments
 (0)