1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

qt5: ifdef two Q_DECLARE_METATYPE invocations out, for some reason they fail with Qt5

This commit is contained in:
Dominik Schmidt
2013-01-05 23:22:03 +01:00
parent d829c09e9d
commit 8a373681b2
2 changed files with 7 additions and 0 deletions

View File

@@ -61,5 +61,9 @@ private:
DatabaseCommand_LoadAllPlaylists::SortAscDesc m_sortAscDesc; DatabaseCommand_LoadAllPlaylists::SortAscDesc m_sortAscDesc;
}; };
//FIXME: Qt5: this fails with Qt5, is it needed at all? It compiles fine without in Qt4 as well
#if ! QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
Q_DECLARE_METATYPE(QList<DatabaseCommand_LoadAllSortedPlaylists::SourcePlaylistPair>) Q_DECLARE_METATYPE(QList<DatabaseCommand_LoadAllSortedPlaylists::SourcePlaylistPair>)
#endif
#endif // DATABASECOMMAND_LOADALLSORTEDPLAYLISTS_H #endif // DATABASECOMMAND_LOADALLSORTEDPLAYLISTS_H

View File

@@ -142,6 +142,9 @@ private:
}; };
//FIXME: Qt5: this fails with Qt5, is it needed at all? It compiles fine without in Qt4 as well
#if ! QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
Q_DECLARE_METATYPE( DatabaseCommand_LoadSocialActions::TrackActions ) Q_DECLARE_METATYPE( DatabaseCommand_LoadSocialActions::TrackActions )
#endif
#endif // DATABASECOMMAND_LOADSOCIALACTIONS_H #endif // DATABASECOMMAND_LOADSOCIALACTIONS_H