1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 03:24:15 +02:00

Only show separator on non-osx since it makes the otherwise empty Help menu show up

This commit is contained in:
Leo Franchi
2011-05-07 10:13:19 -04:00
parent d657c43d72
commit 0c5536bf78
2 changed files with 8 additions and 2 deletions

View File

@@ -150,6 +150,10 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
toolbar->setToolButtonStyle( Qt::ToolButtonFollowStyle ); toolbar->setToolButtonStyle( Qt::ToolButtonFollowStyle );
toolbar->installEventFilter( new WidgetDragFilter( toolbar ) ); toolbar->installEventFilter( new WidgetDragFilter( toolbar ) );
#ifndef Q_WS_MAC
ui->menuHelp->insertSeparator( 1 );
#endif
#if defined( Q_OS_DARWIN ) && defined( HAVE_SPARKLE ) #if defined( Q_OS_DARWIN ) && defined( HAVE_SPARKLE )
QAction* checkForUpdates = ui->menu_Help->addAction( tr( "Check For Updates...") ); QAction* checkForUpdates = ui->menu_Help->addAction( tr( "Check For Updates...") );
checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole ); checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole );

View File

@@ -35,7 +35,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1000</width> <width>1000</width>
<height>20</height> <height>22</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuSettings"> <widget class="QMenu" name="menuSettings">
@@ -84,7 +84,6 @@
<string>&amp;Help</string> <string>&amp;Help</string>
</property> </property>
<addaction name="actionDiagnostics"/> <addaction name="actionDiagnostics"/>
<addaction name="separator"/>
<addaction name="actionAboutTomahawk"/> <addaction name="actionAboutTomahawk"/>
</widget> </widget>
<addaction name="menuApp"/> <addaction name="menuApp"/>
@@ -187,6 +186,9 @@
<property name="text"> <property name="text">
<string>Diagnostics...</string> <string>Diagnostics...</string>
</property> </property>
<property name="menuRole">
<enum>QAction::ApplicationSpecificRole</enum>
</property>
</action> </action>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>