From 4c4af2658bb16dc17343c0cbbf7315fa26cadb33 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 19 May 2011 03:30:12 +0200 Subject: [PATCH] * Fix compiling when sparkle is enabled. --- src/tomahawkwindow.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/tomahawkwindow.cpp b/src/tomahawkwindow.cpp index 01c69b105..251fc7205 100644 --- a/src/tomahawkwindow.cpp +++ b/src/tomahawkwindow.cpp @@ -60,6 +60,7 @@ #include "tomahawktrayicon.h" #include "playlist/dynamic/GeneratorInterface.h" #include "scanmanager.h" +#include "tomahawkapp.h" #ifdef Q_OS_WIN32 #include @@ -158,7 +159,7 @@ TomahawkWindow::TomahawkWindow( QWidget* parent ) #if defined( Q_OS_DARWIN ) && defined( HAVE_SPARKLE ) QAction* checkForUpdates = ui->menu_Help->addAction( tr( "Check For Updates...") ); checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole ); - connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) ); + connect( checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) ); #elif defined( WIN32 ) QUrl updaterUrl; @@ -311,6 +312,7 @@ TomahawkWindow::changeEvent( QEvent* e ) } } + void TomahawkWindow::closeEvent( QCloseEvent* e ) { @@ -326,6 +328,7 @@ TomahawkWindow::closeEvent( QCloseEvent* e ) e->accept(); } + void TomahawkWindow::showEvent( QShowEvent* e ) { @@ -337,6 +340,7 @@ TomahawkWindow::showEvent( QShowEvent* e ) #endif } + void TomahawkWindow::hideEvent( QHideEvent* e ) { @@ -348,6 +352,7 @@ TomahawkWindow::hideEvent( QHideEvent* e ) #endif } + void TomahawkWindow::showSettingsDialog() { @@ -356,6 +361,7 @@ TomahawkWindow::showSettingsDialog() win.exec(); } + void TomahawkWindow::showDiagnosticsDialog() { qDebug() << Q_FUNC_INFO; @@ -517,6 +523,7 @@ TomahawkWindow::onSipDisconnected() ui->actionToggleConnect->setText( tr( "Go &online" ) ); } + void TomahawkWindow::onSipPluginAdded( SipPlugin* p ) { @@ -524,6 +531,7 @@ TomahawkWindow::onSipPluginAdded( SipPlugin* p ) connect( p, SIGNAL( removeMenu( QMenu* ) ), this, SLOT( pluginMenuRemoved( QMenu* ) ) ); } + void TomahawkWindow::onSipPluginRemoved( SipPlugin* p ) { @@ -567,6 +575,7 @@ TomahawkWindow::showAboutTomahawk() .arg( qApp->applicationVersion() ) ); } + void TomahawkWindow::checkForUpdates() { @@ -575,6 +584,7 @@ TomahawkWindow::checkForUpdates() #endif } + void TomahawkWindow::minimize() { @@ -586,6 +596,7 @@ TomahawkWindow::minimize() } } + void TomahawkWindow::maximize() {