Skip to content
Permalink
Browse files

Center menu titles, followup 09c2444

  • Loading branch information
m-kuhn committed Jul 24, 2015
1 parent c93fdf9 commit 74da2542b597e53965c637aa3bfa47a6382b3ea3
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/app/qgisapp.cpp
@@ -10560,15 +10560,21 @@ QMenu* QgisApp::createPopupMenu()

qSort( panels.begin(), panels.end(), cmpByText_ );
QWidgetAction* panelstitle = new QWidgetAction( menu );
panelstitle->setDefaultWidget( new QLabel( QString( "<b>%1</b>" ).arg( tr( "Panels" ) ) ) );
QLabel* plabel = new QLabel( QString( "<b>%1</b>" ).arg( tr( "Panels" ) ) );
plabel->setMargin( 3 );
plabel->setAlignment( Qt::AlignHCenter );
panelstitle->setDefaultWidget( plabel );
menu->addAction( panelstitle );
foreach ( QAction* a, panels )
{
menu->addAction( a );
}
menu->addSeparator();
QWidgetAction* toolbarstitle = new QWidgetAction( menu );
toolbarstitle->setDefaultWidget( new QLabel( QString( "<b>%1</b>" ).arg( tr( "Toolbars" ) ) ) );
QLabel* tlabel = new QLabel( QString( "<b>%1</b>" ).arg( tr( "Toolbars" ) ) );
tlabel->setMargin( 3 );
tlabel->setAlignment( Qt::AlignHCenter );
toolbarstitle->setDefaultWidget( tlabel );
menu->addAction( toolbarstitle );
qSort( toolbars.begin(), toolbars.end(), cmpByText_ );
foreach ( QAction* a, toolbars )

0 comments on commit 74da254

Please sign in to comment.
You can’t perform that action at this time.