Make qtbase build with Qt-in-namespace again
Change-Id: I5faa8690a05d6ec352fc69c0b69848539f2ed216 Reviewed-on: http://codereview.qt-project.org/5460 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>bb10
parent
cb57d36f45
commit
dea76f3496
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -53,5 +53,5 @@ QSurface::SurfaceType QSurface::surfaceType() const
|
|||
return m_type;
|
||||
}
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -63,7 +63,9 @@
|
|||
#include <QtGui/QPalette>
|
||||
#include <QtCore/QSharedData>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QIcon;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#ifndef QT_NO_CSSPARSER
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@
|
|||
#include "qgenericunixeventdispatcher_p.h"
|
||||
#include "qeventdispatcher_qpa_p.h"
|
||||
#include "qeventdispatcher_glib_p.h"
|
||||
#include <qglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QAbstractEventDispatcher *createUnixEventDispatcher()
|
||||
{
|
||||
|
|
@ -53,3 +54,5 @@ class QAbstractEventDispatcher *createUnixEventDispatcher()
|
|||
#endif
|
||||
return new QEventDispatcherQPA();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -39,5 +39,27 @@
|
|||
**
|
||||
****************************************************************************/
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists for the convenience
|
||||
// of other Qt classes. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#ifndef QGENERICUNIXEVENTDISPATCHER_P_H
|
||||
#define QGENERICUNIXEVENTDISPATCHER_P_H
|
||||
|
||||
#include <qglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QAbstractEventDispatcher;
|
||||
QAbstractEventDispatcher* createUnixEventDispatcher();
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QGENERICUNIXEVENTDISPATCHER_P_H
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@
|
|||
|
||||
#include <QtDBus>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
enum { debug = 0 };
|
||||
|
||||
class QIBusPlatformInputContextPrivate
|
||||
|
|
@ -327,3 +329,5 @@ QDBusConnection *QIBusPlatformInputContextPrivate::createConnection()
|
|||
|
||||
return new QDBusConnection(QDBusConnection::connectToBus(QString::fromLatin1(address), QLatin1String("QIBusProxy")));
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@
|
|||
|
||||
#include <QPlatformInputContext>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QIBusPlatformInputContextPrivate;
|
||||
class QDBusVariant;
|
||||
|
||||
|
|
@ -71,4 +73,6 @@ private:
|
|||
QIBusPlatformInputContextPrivate *d;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@
|
|||
#include <qtextformat.h>
|
||||
#include <QtDBus>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QIBusSerializable::QIBusSerializable()
|
||||
{
|
||||
}
|
||||
|
|
@ -207,3 +209,4 @@ void QIBusText::fromDBusArgument(const QDBusArgument &arg)
|
|||
arg.endStructure();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@
|
|||
#include <qvector.h>
|
||||
#include <qevent.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QDBusArgument;
|
||||
|
||||
class QIBusSerializable
|
||||
|
|
@ -113,4 +115,6 @@ public:
|
|||
QIBusAttributeList attributes;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@
|
|||
#include <xcb/xcb_icccm.h>
|
||||
#undef class
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbClipboardMime : public QXcbMime
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
@ -847,4 +849,6 @@ QByteArray QXcbClipboard::getSelection(xcb_atom_t selection, xcb_atom_t target,
|
|||
return buf;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "qxcbclipboard.moc"
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@
|
|||
#include <xcb/xcb.h>
|
||||
#include <xcb/xfixes.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbConnection;
|
||||
class QXcbScreen;
|
||||
class QXcbClipboardMime;
|
||||
|
|
@ -105,4 +107,6 @@ private:
|
|||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QXCBCLIPBOARD_H
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@ extern "C" {
|
|||
#include <EGL/eglext.h>
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QXcbConnection::QXcbConnection(const char *displayName)
|
||||
: m_displayName(displayName ? QByteArray(displayName) : qgetenv("DISPLAY"))
|
||||
#ifdef XCB_USE_DRI2
|
||||
|
|
@ -1070,3 +1072,5 @@ bool QXcbConnection::hasSupportForDri2() const
|
|||
return m_has_support_for_dri2;
|
||||
}
|
||||
#endif //XCB_USE_DRI2
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@
|
|||
|
||||
#define Q_XCB_DEBUG
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbScreen;
|
||||
class QXcbWindow;
|
||||
class QXcbDrag;
|
||||
|
|
@ -429,4 +431,6 @@ cookie_t q_xcb_call_template(const cookie_t &cookie, QXcbConnection *connection,
|
|||
#define EGL_DISPLAY_FROM_XCB(object) ((EGLDisplay)(object->connection()->egl_display()))
|
||||
#endif //endifXCB_USE_DRI2
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@
|
|||
|
||||
#include <QEvent>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWindow;
|
||||
|
||||
class QXcbKeyboard : public QXcbObject
|
||||
|
|
@ -86,4 +88,6 @@ private:
|
|||
xcb_key_symbols_t *m_key_symbols;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@
|
|||
#undef XCB_ATOM_PIXMAP
|
||||
#undef XCB_ATOM_BITMAP
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QXcbMime::QXcbMime()
|
||||
: QInternalMimeData()
|
||||
{ }
|
||||
|
|
@ -286,3 +288,5 @@ xcb_atom_t QXcbMime::mimeAtomForFormat(QXcbConnection *connection, const QString
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@
|
|||
#include "qxcbintegration.h"
|
||||
#include "qxcbconnection.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbMime : public QInternalMimeData {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
@ -65,4 +67,6 @@ public:
|
|||
const QList<xcb_atom_t> &atoms, QByteArray *requestedEncoding);
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QXCBMIME_H
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@
|
|||
#include "qdri2context.h"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbResourceMap : public QMap<QByteArray, QXcbNativeInterface::ResourceType>
|
||||
{
|
||||
public:
|
||||
|
|
@ -202,3 +204,5 @@ void * QXcbNativeInterface::eglContextForContext(QOpenGLContext *context)
|
|||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#include <QtGui/QPlatformNativeInterface>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWidget;
|
||||
class QXcbScreen;
|
||||
|
||||
|
|
@ -74,4 +76,6 @@ private:
|
|||
static QXcbScreen *qPlatformScreenForWindow(QWindow *window);
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QXCBNATIVEINTERFACE_H
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@
|
|||
|
||||
#include "qxcbobject.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbConnection;
|
||||
class QXcbCursor;
|
||||
|
||||
|
|
@ -91,4 +93,6 @@ private:
|
|||
QXcbCursor *m_cursor;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@
|
|||
|
||||
//#ifdef NET_WM_STATE_DEBUG
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
// Returns true if we should set WM_TRANSIENT_FOR on \a w
|
||||
static inline bool isTransient(const QWindow *w)
|
||||
{
|
||||
|
|
@ -1393,3 +1395,5 @@ void QXcbWindow::setCursor(xcb_cursor_t cursor)
|
|||
xcb_change_window_attributes(xcb_connection(), m_window, XCB_CW_CURSOR, &cursor);
|
||||
xcb_flush(xcb_connection());
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@
|
|||
|
||||
#include "qxcbobject.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbScreen;
|
||||
class QXcbEGLSurface;
|
||||
|
||||
|
|
@ -160,4 +162,6 @@ private:
|
|||
QRegion m_exposeRegion;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#include <qdebug.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QXcbWMSupport::QXcbWMSupport(QXcbConnection *c)
|
||||
: QXcbObject(c)
|
||||
{
|
||||
|
|
@ -134,3 +136,4 @@ void QXcbWMSupport::updateVirtualRoots()
|
|||
qDebug() << "======== updateVirtualRoots";
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@
|
|||
#include "qxcbconnection.h"
|
||||
#include <qvector.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QXcbWMSupport : public QXcbObject
|
||||
{
|
||||
public:
|
||||
|
|
@ -63,5 +65,6 @@ private:
|
|||
QVector<xcb_window_t> net_virtual_roots;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@
|
|||
#include "QDesktopWidget"
|
||||
#include "private/qwidget_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QDesktopScreenWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
@ -78,4 +80,6 @@ public:
|
|||
QList<QDesktopScreenWidget *> screens;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QDESKTOPWIDGET_QPA_P_H
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@
|
|||
|
||||
#include "qplatformmenu_qpa.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
//
|
||||
// QPlatformMenuAction
|
||||
//
|
||||
|
|
@ -90,3 +92,4 @@ void QPlatformMenuBar::handleReparent(QWidget *newParent)
|
|||
Q_UNUSED(newParent);
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ static const char* open_xpm[]={
|
|||
|
||||
// ************************************
|
||||
|
||||
static QString QStringData(int index)
|
||||
static QString stringData(int index)
|
||||
{
|
||||
switch (index) {
|
||||
case 0: return QString();
|
||||
|
|
@ -447,7 +447,7 @@ void tst_QDataStream::stream_QString()
|
|||
|
||||
void tst_QDataStream::writeQString(QDataStream* s)
|
||||
{
|
||||
QString test(QStringData(dataIndex(QTest::currentDataTag())));
|
||||
QString test(stringData(dataIndex(QTest::currentDataTag())));
|
||||
*s << test;
|
||||
*s << QString("Her er det noe tekst");
|
||||
*s << test;
|
||||
|
|
@ -462,7 +462,7 @@ void tst_QDataStream::writeQString(QDataStream* s)
|
|||
void tst_QDataStream::readQString(QDataStream *s)
|
||||
{
|
||||
QString S;
|
||||
QString test(QStringData(dataIndex(QTest::currentDataTag())));
|
||||
QString test(stringData(dataIndex(QTest::currentDataTag())));
|
||||
|
||||
*s >> S;
|
||||
QCOMPARE(S, test);
|
||||
|
|
|
|||
Loading…
Reference in New Issue