Ticket #36581: patch-src-TrayIcon.cpp.diff

File patch-src-TrayIcon.cpp.diff, 748 bytes (added by james-mathiesen@…, 12 years ago)

declare qt_mac_set_dock_menu in the global namespace

  • src/TrayIcon.cpp

    old new  
    4141#include <QPixmap>
    4242#include <QToolTip>
    4343
     44#ifdef Q_WS_MAC
     45extern void qt_mac_set_dock_menu(QMenu *);
     46#endif
     47
    4448Amarok::TrayIcon::TrayIcon( QObject *parent )
    4549        : KStatusNotifierItem( parent )
    4650        , m_track( The::engineController()->currentTrack() )
     
    5458
    5559#ifdef Q_WS_MAC
    5660    // Add these functions to the dock icon menu in OS X
    57     extern void qt_mac_set_dock_menu(QMenu *);
    58     qt_mac_set_dock_menu( contextMenu() );
     61    ::qt_mac_set_dock_menu( contextMenu() );
    5962    contextMenu()->addAction( ac->action( "playlist_playmedia" ) );
    6063    contextMenu()->addSeparator();
    6164#endif