mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-01 01:51:58 +02:00
Fight all compiler warnings in libtomahawk
This commit is contained in:
@@ -30,6 +30,12 @@
|
|||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Query.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
ActionCollection* ActionCollection::s_instance = 0;
|
ActionCollection* ActionCollection::s_instance = 0;
|
||||||
ActionCollection* ActionCollection::instance()
|
ActionCollection* ActionCollection::instance()
|
||||||
{
|
{
|
||||||
|
@@ -20,17 +20,23 @@
|
|||||||
|
|
||||||
#include "AlbumPlaylistInterface.h"
|
#include "AlbumPlaylistInterface.h"
|
||||||
|
|
||||||
#include "Artist.h"
|
#include "utils/Logger.h"
|
||||||
#include "collection/TracksRequest.h"
|
#include "collection/TracksRequest.h"
|
||||||
#include "database/Database.h"
|
#include "database/Database.h"
|
||||||
#include "database/DatabaseImpl.h"
|
#include "database/DatabaseImpl.h"
|
||||||
#include "database/DatabaseCommand_AllTracks.h"
|
#include "database/DatabaseCommand_AllTracks.h"
|
||||||
|
|
||||||
|
#include "Artist.h"
|
||||||
#include "Pipeline.h"
|
#include "Pipeline.h"
|
||||||
#include "Query.h"
|
#include "Query.h"
|
||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
#include "SourceList.h"
|
#include "SourceList.h"
|
||||||
|
|
||||||
#include "utils/Logger.h"
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Result.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
@@ -19,14 +19,19 @@
|
|||||||
|
|
||||||
#include "ArtistPlaylistInterface.h"
|
#include "ArtistPlaylistInterface.h"
|
||||||
|
|
||||||
#include "Artist.h"
|
|
||||||
#include "collection/Collection.h"
|
#include "collection/Collection.h"
|
||||||
#include "Query.h"
|
|
||||||
#include "database/Database.h"
|
#include "database/Database.h"
|
||||||
#include "database/DatabaseCommand_AllTracks.h"
|
#include "database/DatabaseCommand_AllTracks.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
#include "Artist.h"
|
||||||
|
#include "Query.h"
|
||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
|
|
||||||
#include "utils/Logger.h"
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Result.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
@@ -29,6 +29,12 @@
|
|||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Result.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
LatchManager::LatchManager( QObject* parent )
|
LatchManager::LatchManager( QObject* parent )
|
||||||
|
@@ -24,6 +24,13 @@
|
|||||||
#include "utils/TomahawkStyle.h"
|
#include "utils/TomahawkStyle.h"
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include "DatabaseCommand.h"
|
#include "DatabaseCommand.h"
|
||||||
|
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include "DatabaseCommand_AddFiles.h"
|
#include "DatabaseCommand_AddFiles.h"
|
||||||
#include "DatabaseCommand_CreatePlaylist.h"
|
#include "DatabaseCommand_CreatePlaylist.h"
|
||||||
#include "DatabaseCommand_DeleteFiles.h"
|
#include "DatabaseCommand_DeleteFiles.h"
|
||||||
@@ -30,11 +32,14 @@
|
|||||||
#include "DatabaseCommand_SetDynamicPlaylistRevision.h"
|
#include "DatabaseCommand_SetDynamicPlaylistRevision.h"
|
||||||
#include "DatabaseCommand_SocialAction.h"
|
#include "DatabaseCommand_SocialAction.h"
|
||||||
#include "DatabaseCommand_ShareTrack.h"
|
#include "DatabaseCommand_ShareTrack.h"
|
||||||
|
|
||||||
#include "utils/Logger.h"
|
|
||||||
#include "DatabaseCommand_SetCollectionAttributes.h"
|
#include "DatabaseCommand_SetCollectionAttributes.h"
|
||||||
#include "DatabaseCommand_SetTrackAttributes.h"
|
#include "DatabaseCommand_SetTrackAttributes.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand::DatabaseCommand( QObject* parent )
|
DatabaseCommand::DatabaseCommand( QObject* parent )
|
||||||
: QObject( parent )
|
: QObject( parent )
|
||||||
|
@@ -23,6 +23,12 @@
|
|||||||
#include "SourceList.h"
|
#include "SourceList.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -24,6 +24,11 @@
|
|||||||
|
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -21,6 +21,11 @@
|
|||||||
#include "Query.h"
|
#include "Query.h"
|
||||||
#include "Track.h"
|
#include "Track.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand_DeleteInboxEntry::DatabaseCommand_DeleteInboxEntry( const Tomahawk::query_ptr& query,
|
DatabaseCommand_DeleteInboxEntry::DatabaseCommand_DeleteInboxEntry( const Tomahawk::query_ptr& query,
|
||||||
QObject* parent )
|
QObject* parent )
|
||||||
|
@@ -21,6 +21,11 @@
|
|||||||
#include "Query.h"
|
#include "Query.h"
|
||||||
#include "Track.h"
|
#include "Track.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand_ModifyInboxEntry::DatabaseCommand_ModifyInboxEntry( const Tomahawk::query_ptr& query,
|
DatabaseCommand_ModifyInboxEntry::DatabaseCommand_ModifyInboxEntry( const Tomahawk::query_ptr& query,
|
||||||
bool newValue,
|
bool newValue,
|
||||||
|
@@ -22,6 +22,12 @@
|
|||||||
#include "DatabaseImpl.h"
|
#include "DatabaseImpl.h"
|
||||||
#include "TomahawkSqlQuery.h"
|
#include "TomahawkSqlQuery.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand_NetworkCharts::DatabaseCommand_NetworkCharts( const QDateTime &from, const QDateTime &to, QObject *parent )
|
DatabaseCommand_NetworkCharts::DatabaseCommand_NetworkCharts( const QDateTime &from, const QDateTime &to, QObject *parent )
|
||||||
: DatabaseCommand( parent )
|
: DatabaseCommand( parent )
|
||||||
, m_amount( 0 )
|
, m_amount( 0 )
|
||||||
|
@@ -23,6 +23,11 @@
|
|||||||
#include "SourceList.h"
|
#include "SourceList.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -29,6 +29,12 @@
|
|||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
InboxJobItem::InboxJobItem( Side side,
|
InboxJobItem::InboxJobItem( Side side,
|
||||||
const QString& prettyName,
|
const QString& prettyName,
|
||||||
|
@@ -33,6 +33,12 @@
|
|||||||
#include "JobStatusView.h"
|
#include "JobStatusView.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
TransferStatusItem::TransferStatusItem( TransferStatusManager* p, StreamConnection* sc )
|
TransferStatusItem::TransferStatusItem( TransferStatusManager* p, StreamConnection* sc )
|
||||||
: m_parent( p )
|
: m_parent( p )
|
||||||
, m_stream( QPointer< StreamConnection >( sc ) )
|
, m_stream( QPointer< StreamConnection >( sc ) )
|
||||||
|
@@ -39,6 +39,12 @@
|
|||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "utils/PixmapDelegateFader.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -36,6 +36,12 @@
|
|||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "InboxModel.h"
|
#include "InboxModel.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "collection/Collection.h"
|
||||||
|
#include "utils/PixmapDelegateFader.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
@@ -34,6 +34,12 @@
|
|||||||
#include "utils/TomahawkUtils.h"
|
#include "utils/TomahawkUtils.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Playlist.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
QPixmap* ItunesParser::s_pixmap = 0;
|
QPixmap* ItunesParser::s_pixmap = 0;
|
||||||
|
@@ -26,6 +26,11 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPropertyAnimation>
|
#include <QPropertyAnimation>
|
||||||
|
|
||||||
|
// Forward Declarations breaking QSharedPointer
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
|
#include "Source.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define CORNER_ROUNDNESS 8.0
|
#define CORNER_ROUNDNESS 8.0
|
||||||
#define FADING_DURATION 500
|
#define FADING_DURATION 500
|
||||||
|
Reference in New Issue
Block a user