summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qshapedpixmapdndwindow_p.h
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2015-04-13 14:13:34 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2015-10-14 18:41:19 +0000
commite9121328866efa6ba3eb78a991fef785338fd55e (patch)
treea02ee5eba3d263dccc2d81ad2f6343b302070d1d /src/gui/kernel/qshapedpixmapdndwindow_p.h
parent4b9cdf90ca4299ffd4ec602571944ace10ef9cdc (diff)
xcb: Use XShape for DnD when a compositing manager is not running
Otherwise transparent areas of the drag'n'drop pixmap are painted with the black color. Task-number: QTBUG-45193 Change-Id: I55b7c7caababe13584fa1c7a52835f112e20f920 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qshapedpixmapdndwindow_p.h')
-rw-r--r--src/gui/kernel/qshapedpixmapdndwindow_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qshapedpixmapdndwindow_p.h b/src/gui/kernel/qshapedpixmapdndwindow_p.h
index 7536c09165..3d7974fa82 100644
--- a/src/gui/kernel/qshapedpixmapdndwindow_p.h
+++ b/src/gui/kernel/qshapedpixmapdndwindow_p.h
@@ -60,6 +60,7 @@ public:
void render();
+ void setUseCompositing(bool on) { m_useCompositing = on; }
void setPixmap(const QPixmap &pixmap);
void setHotspot(const QPoint &hotspot);
@@ -72,6 +73,7 @@ private:
QBackingStore *m_backingStore;
QPixmap m_pixmap;
QPoint m_hotSpot;
+ bool m_useCompositing;
};
QT_END_NAMESPACE