Remove some moc/QObject warnings in KDE builds without streams or http server.

BUG: 507
This commit is contained in:
craig.p.drummond
2014-07-23 20:56:09 +00:00
committed by craig.p.drummond
parent 20392d4ebb
commit df7604c302
3 changed files with 14 additions and 1 deletions

View File

@@ -14,6 +14,8 @@
1.4.1
-----
1. Remove unused var warning when compiling without online services.
2. Remove some moc/QObject warnings in KDE builds without streams or http
server.
1.4.0
-----

View File

@@ -37,7 +37,7 @@ class QTimer;
class HttpServer : public QObject
{
#ifdef ENABLE_HTTP_SERVER
#if defined ENABLE_HTTP_SERVER || defined ENABLE_KDE_SUPPORT
Q_OBJECT
#endif

View File

@@ -332,6 +332,17 @@ private:
QList<Item *> hiddenCategories;
};
#elif defined ENABLE_KDE_SUPPORT
#include <QObject>
class StreamsModel : public QObject
{
Q_OBJECT
public:
static const QString constPrefix;
static const QString constPlayListName;
static QString modifyUrl(const QString &u, bool addPrefix=true, const QString &name=QString());
static bool validProtocol(const QString &file);
};
#else
namespace StreamsModel
{