summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbdrag.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-07 16:29:35 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-06-07 16:29:35 +0200
commit52e5fd336bcbe91f1d964015ecf59254c97d92d1 (patch)
tree7a2dbfb78531f97d506fc887e1d78a9b580e706f /src/plugins/platforms/xcb/qxcbdrag.h
parent4386425ce310815076739ea5f15fe4f1218599c8 (diff)
cleanups code
Make QXcbClipboard and QXcbDrag a QXcbObject to simplify the code. Use the predefined atoms in xproto.h instead of our own defines.
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbdrag.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbdrag.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/platforms/xcb/qxcbdrag.h b/src/plugins/platforms/xcb/qxcbdrag.h
index 82d634d592..ce0f8faa54 100644
--- a/src/plugins/platforms/xcb/qxcbdrag.h
+++ b/src/plugins/platforms/xcb/qxcbdrag.h
@@ -42,10 +42,10 @@
#ifndef QXCBDRAG_H
#define QXCBDRAG_H
-#include <qlist.h>
#include <qplatformdrag_qpa.h>
-#include <qnamespace.h>
+#include <qxcbobject.h>
#include <xcb/xcb.h>
+#include <qlist.h>
#include <qpoint.h>
#include <qrect.h>
#include <qsharedpointer.h>
@@ -61,7 +61,7 @@ class QDropData;
class QXcbScreen;
class QDrag;
-class QXcbDrag : public QObject, public QPlatformDrag
+class QXcbDrag : public QObject, public QXcbObject, public QPlatformDrag
{
public:
QXcbDrag(QXcbConnection *c);
@@ -88,8 +88,6 @@ public:
bool dndEnable(QXcbWindow *win, bool on);
- QXcbConnection *connection() const { return m_connection; }
-
protected:
void timerEvent(QTimerEvent* e);
@@ -108,7 +106,6 @@ private:
QWeakPointer<QWindow> currentWindow;
QPoint currentPosition;
- QXcbConnection *m_connection;
QDropData *dropData;
QWindow *desktop_proxy;