summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qpixmap_qpa.cpp4
-rw-r--r--src/gui/kernel/qinputpanel.cpp4
-rw-r--r--src/gui/kernel/qopenglcontext.cpp3
-rw-r--r--src/gui/kernel/qplatformopenglcontext_qpa.cpp4
-rw-r--r--src/gui/kernel/qplatformscreen_qpa.cpp4
-rw-r--r--src/gui/kernel/qplatformwindow_qpa.cpp4
-rw-r--r--src/gui/kernel/qstylehints.cpp4
-rw-r--r--src/gui/kernel/qsurface.cpp2
-rw-r--r--src/gui/kernel/qsurfaceformat.cpp4
-rw-r--r--src/gui/painting/qpagedpaintdevice.cpp4
-rw-r--r--src/gui/painting/qpdfwriter.cpp3
-rw-r--r--src/gui/text/qcssparser_p.h2
12 files changed, 41 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_qpa.cpp b/src/gui/image/qpixmap_qpa.cpp
index 9c69ddef7e..4fe162efd8 100644
--- a/src/gui/image/qpixmap_qpa.cpp
+++ b/src/gui/image/qpixmap_qpa.cpp
@@ -43,7 +43,11 @@
#include <qscreen.h>
#include <private/qguiapplication_p.h>
+QT_BEGIN_NAMESPACE
+
QPixmap QPixmap::grabWindow(WId window, int x, int y, int w, int h)
{
return QGuiApplication::primaryScreen()->handle()->grabWindow(window, x, y, w, h);
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qinputpanel.cpp b/src/gui/kernel/qinputpanel.cpp
index 19c0d4a9ce..a024a823f3 100644
--- a/src/gui/kernel/qinputpanel.cpp
+++ b/src/gui/kernel/qinputpanel.cpp
@@ -42,6 +42,8 @@
#include <qinputpanel.h>
#include <private/qinputpanel_p.h>
+QT_BEGIN_NAMESPACE
+
QInputPanel::QInputPanel()
: QObject(*new QInputPanelPrivate)
{
@@ -190,4 +192,6 @@ void QInputPanel::invokeAction(Action a, int cursorPosition)
ic->invokeAction(a, cursorPosition);
}
+QT_END_NAMESPACE
+
#include "moc_qinputpanel.cpp"
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index 5f68d2a711..2d7a62996c 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -54,6 +54,8 @@
#include <QDebug>
+QT_BEGIN_NAMESPACE
+
class QGuiGLThreadContext
{
public:
@@ -603,3 +605,4 @@ void QOpenGLMultiGroupSharedResource::cleanup(QOpenGLContext *ctx, QOpenGLShared
m_groups.removeOne(group);
}
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.cpp b/src/gui/kernel/qplatformopenglcontext_qpa.cpp
index 2957b4db4b..26920cc574 100644
--- a/src/gui/kernel/qplatformopenglcontext_qpa.cpp
+++ b/src/gui/kernel/qplatformopenglcontext_qpa.cpp
@@ -41,6 +41,8 @@
#include "qplatformopenglcontext_qpa.h"
+QT_BEGIN_NAMESPACE
+
/*!
\class QPlatformOpenGLContext
\since 4.8
@@ -109,3 +111,5 @@ void QPlatformOpenGLContext::setContext(QOpenGLContext *context)
Q_D(QPlatformOpenGLContext);
d->context = context;
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qplatformscreen_qpa.cpp b/src/gui/kernel/qplatformscreen_qpa.cpp
index e25e3f33d3..1a8e6d8f7c 100644
--- a/src/gui/kernel/qplatformscreen_qpa.cpp
+++ b/src/gui/kernel/qplatformscreen_qpa.cpp
@@ -46,6 +46,8 @@
#include <QtGui/qscreen.h>
#include <QtGui/qwindow.h>
+QT_BEGIN_NAMESPACE
+
class QPlatformScreenPrivate
{
public:
@@ -219,3 +221,5 @@ QPlatformScreenPageFlipper *QPlatformScreen::pageFlipper() const
{
return 0;
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp
index 0734fb7a26..f736f1d923 100644
--- a/src/gui/kernel/qplatformwindow_qpa.cpp
+++ b/src/gui/kernel/qplatformwindow_qpa.cpp
@@ -45,6 +45,8 @@
#include <QtGui/qwindow.h>
#include <QtGui/qscreen.h>
+QT_BEGIN_NAMESPACE
+
class QPlatformWindowPrivate
{
QWindow *window;
@@ -273,3 +275,5 @@ bool QPlatformWindow::setMouseGrabEnabled(bool grab)
\sa QWindowSurface, QWindow
*/
+
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
index c917049a22..7585d23558 100644
--- a/src/gui/kernel/qstylehints.cpp
+++ b/src/gui/kernel/qstylehints.cpp
@@ -43,6 +43,8 @@
#include <qplatformintegration_qpa.h>
#include <private/qguiapplication_p.h>
+QT_BEGIN_NAMESPACE
+
static inline QVariant hint(QPlatformIntegration::StyleHint h)
{
return QGuiApplicationPrivate::platformIntegration()->styleHint(h);
@@ -78,3 +80,5 @@ int QStyleHints::cursorFlashTime() const
{
return hint(QPlatformIntegration::CursorFlashTime).toInt();
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qsurface.cpp b/src/gui/kernel/qsurface.cpp
index 72d74a2307..871b765bfd 100644
--- a/src/gui/kernel/qsurface.cpp
+++ b/src/gui/kernel/qsurface.cpp
@@ -53,5 +53,5 @@ QSurface::SurfaceType QSurface::surfaceType() const
return m_type;
}
-QT_BEGIN_NAMESPACE
+QT_END_NAMESPACE
diff --git a/src/gui/kernel/qsurfaceformat.cpp b/src/gui/kernel/qsurfaceformat.cpp
index b3167fc126..1919e2d282 100644
--- a/src/gui/kernel/qsurfaceformat.cpp
+++ b/src/gui/kernel/qsurfaceformat.cpp
@@ -52,6 +52,8 @@
#undef minor
#endif
+QT_BEGIN_NAMESPACE
+
class QSurfaceFormatPrivate
{
public:
@@ -464,3 +466,5 @@ QDebug operator<<(QDebug dbg, const QSurfaceFormat &f)
return dbg.space();
}
#endif
+
+QT_END_NAMESPACE
diff --git a/src/gui/painting/qpagedpaintdevice.cpp b/src/gui/painting/qpagedpaintdevice.cpp
index e5b2c0716e..b17413b743 100644
--- a/src/gui/painting/qpagedpaintdevice.cpp
+++ b/src/gui/painting/qpagedpaintdevice.cpp
@@ -41,6 +41,8 @@
#include <qpagedpaintdevice.h>
+QT_BEGIN_NAMESPACE
+
class QPagedPaintDevicePrivate
{
public:
@@ -225,3 +227,5 @@ QPagedPaintDevice::Margins QPagedPaintDevice::margins() const
{
return d->margins;
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/painting/qpdfwriter.cpp b/src/gui/painting/qpdfwriter.cpp
index 9da5491d19..a0f8df2061 100644
--- a/src/gui/painting/qpdfwriter.cpp
+++ b/src/gui/painting/qpdfwriter.cpp
@@ -44,6 +44,7 @@
#include "private/qpdf_p.h"
#include <QtCore/qfile.h>
+QT_BEGIN_NAMESPACE
class QPdfWriterPrivate : public QObjectPrivate
{
@@ -210,3 +211,5 @@ void QPdfWriter::setMargins(const Margins &m)
d->engine->d_func()->topMargin = m.top*multiplier;
d->engine->d_func()->bottomMargin = m.bottom*multiplier;
}
+
+QT_END_NAMESPACE
diff --git a/src/gui/text/qcssparser_p.h b/src/gui/text/qcssparser_p.h
index 4fa8bb0540..171085b800 100644
--- a/src/gui/text/qcssparser_p.h
+++ b/src/gui/text/qcssparser_p.h
@@ -63,7 +63,9 @@
#include <QtGui/QPalette>
#include <QtCore/QSharedData>
+QT_BEGIN_NAMESPACE
class QIcon;
+QT_END_NAMESPACE
#ifndef QT_NO_CSSPARSER