Fix QNX and Blackberry -qtnamespace build

Task-number: QTBUG-43569
Change-Id: I81a560d1508de4d808a807f1febdc17619cf4dda
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
Sérgio Martins 2015-03-29 16:02:53 +01:00
parent c1a67e7dc3
commit 20c651d8b8
9 changed files with 27 additions and 6 deletions

View File

@ -49,6 +49,8 @@
#define qEventDispatcherDebug QT_NO_QDEBUG_MACRO()
#endif
QT_BEGIN_NAMESPACE
class BpsChannelScopeSwitcher
{
public:

View File

@ -37,6 +37,8 @@
#include <QDebug>
#include <QVariant>
QT_BEGIN_NAMESPACE
///////////////////////////
//
// QPpsAttributePrivate
@ -297,3 +299,5 @@ QDebug operator<<(QDebug dbg, const QPpsAttribute &attribute)
return dbg;
}
QT_END_NAMESPACE

View File

@ -57,8 +57,6 @@ class QPpsAttribute;
typedef QList<QPpsAttribute> QPpsAttributeList;
typedef QMap<QString, QPpsAttribute> QPpsAttributeMap;
Q_DECLARE_METATYPE(QPpsAttributeList)
Q_DECLARE_METATYPE(QPpsAttributeMap)
class Q_CORE_EXPORT QPpsAttribute
{
@ -128,4 +126,7 @@ Q_CORE_EXPORT QDebug operator<<(QDebug dbg, const QPpsAttribute &attribute);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QPpsAttributeList)
Q_DECLARE_METATYPE(QPpsAttributeMap)
#endif // QPPSATTRIBUTE_P_H

View File

@ -50,6 +50,8 @@
#include <sys/pps.h>
QT_BEGIN_NAMESPACE
///////////////////////////////////////////////////////////////////////////////
static inline void safeAssign(bool *pointer, bool value)
{
@ -954,3 +956,5 @@ int QPpsObject::sendMessage(const QString &path, const QByteArray &ppsData)
return EOK;
}
QT_END_NAMESPACE

View File

@ -584,6 +584,6 @@ void QClipboard::emitChanged(Mode mode)
emit changed(mode);
}
#endif // QT_NO_CLIPBOARD
QT_END_NAMESPACE
#endif // QT_NO_CLIPBOARD

View File

@ -55,6 +55,8 @@
#define qFilePickerDebug QT_NO_QDEBUG_MACRO
#endif
QT_BEGIN_NAMESPACE
static const char s_filePickerTarget[] = "sys.filepicker.target";
QQnxFilePicker::QQnxFilePicker(QObject *parent)
@ -322,3 +324,5 @@ QString QQnxFilePicker::modeToString(QQnxFilePicker::Mode mode) const
return QStringLiteral("Picker");
}
QT_END_NAMESPACE

View File

@ -38,6 +38,8 @@
#include <QObject>
#include <QStringList>
QT_BEGIN_NAMESPACE
struct navigator_invoke_invocation_t;
class QQnxFilePicker : public QObject, public QAbstractNativeEventFilter
@ -100,4 +102,6 @@ private:
QString m_title;
};
QT_END_NAMESPACE
#endif // QQNXFILEPICKER_H

View File

@ -37,10 +37,10 @@
#include <QtCore/qhash.h>
#include <qpa/qplatformtheme.h>
class QPlatformFontDatabase;
QT_BEGIN_NAMESPACE
class QPlatformFontDatabase;
QHash<QPlatformTheme::Font, QFont *> qt_qnx_createRoleFonts(QPlatformFontDatabase *fontDatabase);
QT_END_NAMESPACE

View File

@ -86,4 +86,6 @@ private:
static const size_t ms_bufferSize;
};
QT_END_NAMESPACE
#endif // VIRTUALKEYBOARDPPS_H