Skip to content

Commit 279a65b

Browse files
alexbruym-kuhn
authored andcommitted
align icons on the Manage layers toolbar (fix #15074) (#3232)
1 parent 6749351 commit 279a65b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/qgisapp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,12 @@ void QgisApp::createToolBars()
22232223
addDbLayerAction->setObjectName( "ActionAddDbLayer" );
22242224
connect( bt, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
22252225

2226+
QLayout *layout = mLayerToolBar->layout();
2227+
for ( int i = 0; i < layout->count(); ++i )
2228+
{
2229+
layout->itemAt( i )->setAlignment( Qt::AlignLeft );
2230+
}
2231+
22262232
//circular string digitize tool button
22272233
QToolButton* tbAddCircularString = new QToolButton( mDigitizeToolBar );
22282234
tbAddCircularString->setPopupMode( QToolButton::MenuButtonPopup );

0 commit comments

Comments
 (0)