From 51699245d7e3a27867f440697eca9b30ea4578f4 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 17 Feb 2012 10:10:27 +0100 Subject: [PATCH] Windows: Fix compilation with -qtnamespace Change-Id: I00ba88887100b699d620875d868f8a769259a768 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp | 4 ++++ src/plugins/platforms/windows/qwindowsfontdatabase_ft.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp b/src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp index 6b6d1a2..031d6ad 100644 --- a/src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp +++ b/src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp @@ -53,6 +53,8 @@ #include +QT_BEGIN_NAMESPACE + static inline QFontDatabase::WritingSystem writingSystemFromScript(const QString &scriptName) { if (scriptName == QStringLiteral("Western") @@ -699,3 +701,5 @@ QFont QWindowsFontDatabaseFT::LOGFONT_to_QFont(const LOGFONT& logFont, int verti qFont.setStrikeOut(logFont.lfStrikeOut); return qFont; } + +QT_END_NAMESPACE diff --git a/src/plugins/platforms/windows/qwindowsfontdatabase_ft.h b/src/plugins/platforms/windows/qwindowsfontdatabase_ft.h index b12c106..5a0c4c6 100644 --- a/src/plugins/platforms/windows/qwindowsfontdatabase_ft.h +++ b/src/plugins/platforms/windows/qwindowsfontdatabase_ft.h @@ -46,6 +46,8 @@ #include #include "qtwindows_additional.h" +QT_BEGIN_NAMESPACE + class QWindowsFontDatabaseFT : public QBasicFontDatabase { public: @@ -68,4 +70,6 @@ private: QSet m_families; }; +QT_END_NAMESPACE + #endif // QWINDOWSFONTDATABASEFT_H -- 2.7.4