mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 08:19:42 +01:00
* Fix compiling when sparkle is enabled.
This commit is contained in:
parent
5a64fc1361
commit
4c4af2658b
@ -60,6 +60,7 @@
|
||||
#include "tomahawktrayicon.h"
|
||||
#include "playlist/dynamic/GeneratorInterface.h"
|
||||
#include "scanmanager.h"
|
||||
#include "tomahawkapp.h"
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <qtsparkle/Updater>
|
||||
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user