WinRT: fix namespaced build
Change-Id: I0505523a5524995e374dc8f005f101d0cea8b01e Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>bb10
parent
a2c4e68141
commit
298a60d958
|
|
@ -131,9 +131,13 @@ generate_inline_return_func2(_putenv_s, errno_t, const char *, const char *)
|
|||
generate_inline_return_func0(tzset, void)
|
||||
generate_inline_return_func0(_tzset, void)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Microsoft {
|
||||
namespace WRL {
|
||||
template <typename T> class ComPtr;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Microsoft { namespace WRL { template <typename T> class ComPtr; } }
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QWinRTFunctions {
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,16 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef Q_OS_WINRT
|
||||
namespace ABI {
|
||||
namespace Windows {
|
||||
namespace Foundation {
|
||||
struct IAsyncAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // Q_OS_WINRT
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QAbstractEventDispatcher;
|
||||
|
|
@ -125,10 +135,6 @@ private:
|
|||
|
||||
#ifndef QT_NO_THREAD
|
||||
|
||||
#ifdef Q_OS_WINRT
|
||||
namespace ABI { namespace Windows { namespace Foundation { struct IAsyncAction; } } }
|
||||
#endif
|
||||
|
||||
class QThreadPrivate : public QObjectPrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(QThread)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ using namespace Microsoft::WRL::Wrappers;
|
|||
using namespace ABI::Windows::UI::Core;
|
||||
using namespace ABI::Windows::Foundation;
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinRTCursorPrivate
|
||||
{
|
||||
|
|
@ -155,3 +155,6 @@ QPoint QWinRTCursor::pos() const
|
|||
coreWindow->get_PointerPosition(&point);
|
||||
return QPoint(point.X, point.Y);
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include <qpa/qplatformcursor.h>
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinRTCursorPrivate;
|
||||
class QWinRTCursor : public QPlatformCursor
|
||||
|
|
@ -54,4 +54,6 @@ private:
|
|||
Q_DECLARE_PRIVATE(QWinRTCursor)
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QWINRTCURSOR_H
|
||||
|
|
|
|||
|
|
@ -36,8 +36,6 @@
|
|||
|
||||
#include <private/qabstractfileengine_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace ABI {
|
||||
namespace Windows {
|
||||
namespace Storage {
|
||||
|
|
@ -46,6 +44,8 @@ namespace ABI {
|
|||
}
|
||||
}
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinRTFileEngineHandlerPrivate;
|
||||
class QWinRTFileEngineHandler : public QAbstractFileEngineHandler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,12 +36,14 @@
|
|||
|
||||
#include <QtPlatformSupport/private/qbasicfontdatabase_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QT_WINRT_USE_DWRITE
|
||||
struct IDWriteFontFile;
|
||||
struct IDWriteFontFamily;
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QT_WINRT_USE_DWRITE
|
||||
struct FontDescription
|
||||
{
|
||||
quint32 index;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <qpa/qplatformservices.h>
|
||||
#include <QtCore/QScopedPointer>
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinRTServicesPrivate;
|
||||
class QWinRTServices : public QPlatformServices
|
||||
|
|
@ -54,4 +54,6 @@ private:
|
|||
Q_DECLARE_PRIVATE(QWinRTServices)
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QWINRTSERVICES_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue