Commit d99ea6ae9f2d2f5821bf7a2f1598a65a800f44ab
Remove icons from menubar actions
For some reason (Qt regression?) specifying an icon made the text in the
menu show up at the width of the icon, not the text. So the text was
being truncated to unreadability.
| |   |
| 54 | 54 | |
| 55 | 55 | QAction* a; |
| 56 | 56 | QMenu* m = new QMenu( i18n("Add new"), this ); |
| m->setIcon( KIcon( "list-add-amarok" ) ); |
| 58 | 57 | a = m->addAction( QString( i18n("ConstraintGroup") ) ); |
| 59 | 58 | connect( a, SIGNAL( triggered( bool ) ), adderMapper, SLOT( map() ) ); |
| 60 | 59 | adderMapper->setMapping( a, i18n("ConstraintGroup") ); |
| … | … | |
| 65 | 65 | menuBar_Actions->addMenu( m ); |
| 66 | 66 | |
| 67 | 67 | a = menuBar_Actions->addAction( i18n("Remove selected") ); |
| a->setIcon( KIcon( "list-remove-amarok" ) ); |
| 69 | 68 | connect( a, SIGNAL( triggered( bool ) ), m_controller, SLOT( removeNode() ) ); |
| 70 | 69 | |
| 71 | 70 | menuBar_Actions->addSeparator(); |
| 72 | 71 | |
| a = QWhatsThis::createAction( menuBar_Actions ); |
| a->setIcon( KIcon( "help-contextual-amarok" ) ); |
| a = QWhatsThis::createAction( this ); |
| a->setIcon( QIcon() ); |
| 75 | 74 | menuBar_Actions->addAction( a ); |
| 76 | 75 | ui.treeLayout->insertWidget( 0, menuBar_Actions ); |
| 77 | 76 | |