diff options
author | Andy Nichols <andy.nichols@digia.com> | 2013-02-05 12:22:17 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2013-02-08 12:34:56 +0100 |
commit | 1b39d072c2601d39354fe83dff8b1e5c05095aaf (patch) | |
tree | 4b38960a1bcef0de376dc5441ec6372e41341801 /src/shared | |
parent | 2e0efd201aa75121f4dd4049598f4d120811d784 (diff) |
Qt-ify the QtCompositor module
Currently the QtCompositor library and API do not follow the Qt API
naming conventions. This commit intends to fix these inconsistencies.
filenames start with q
headers containing private API's end in _p
public API classes begin with Q
use the qt namespace macros where necessary
Wayland namespace is now QtWayland
wayland_wrapper classes are now private API's
It's important to make these changes not just for stylistic reasons, but
also because when qmake builds the module in checks for these
conventions to determine how to deploy the include files.
Change-Id: I8bfadeceda92a0f52cb73c704551da75540e7587
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/qwaylandmimehelper.cpp | 2 | ||||
-rw-r--r-- | src/shared/qwaylandmimehelper.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/qwaylandmimehelper.cpp b/src/shared/qwaylandmimehelper.cpp index ccc48ef2c..d7e511440 100644 --- a/src/shared/qwaylandmimehelper.cpp +++ b/src/shared/qwaylandmimehelper.cpp @@ -46,6 +46,8 @@ #include <QBuffer> #include <QImageWriter> +QT_USE_NAMESPACE + QByteArray QWaylandMimeHelper::getByteArray(QMimeData *mimeData, const QString &mimeType) { QByteArray content; diff --git a/src/shared/qwaylandmimehelper.h b/src/shared/qwaylandmimehelper.h index f31685cd6..539fc3adc 100644 --- a/src/shared/qwaylandmimehelper.h +++ b/src/shared/qwaylandmimehelper.h @@ -46,10 +46,14 @@ #include <QByteArray> #include <QMimeData> +QT_BEGIN_NAMESPACE + class QWaylandMimeHelper { public: static QByteArray getByteArray(QMimeData *mimeData, const QString &mimeType); }; +QT_END_NAMESPACE + #endif |