QWindowsDrag: remove unused member variable and method isDragging
Change-Id: If2b10c31cb3d201395d121e6b20ac19e01128b2f Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>bb10
parent
fa15a465eb
commit
923d09f3f1
|
|
@ -613,7 +613,6 @@ QWindowsOleDropTarget::Drop(LPDATAOBJECT pDataObj, DWORD grfKeyState,
|
|||
*/
|
||||
|
||||
bool QWindowsDrag::m_canceled = false;
|
||||
bool QWindowsDrag::m_dragging = false;
|
||||
|
||||
QWindowsDrag::QWindowsDrag() = default;
|
||||
|
||||
|
|
@ -740,10 +739,7 @@ Qt::DropAction QWindowsDrag::drag(QDrag *drag)
|
|||
const DWORD allowedEffects = translateToWinDragEffects(possibleActions);
|
||||
qCDebug(lcQpaMime) << '>' << __FUNCTION__ << "possible Actions=0x"
|
||||
<< Qt::hex << int(possibleActions) << "effects=0x" << allowedEffects << Qt::dec;
|
||||
// Indicate message handlers we are in DoDragDrop() event loop.
|
||||
QWindowsDrag::m_dragging = true;
|
||||
const HRESULT r = startDoDragDrop(dropDataObject, windowDropSource, allowedEffects, &resultEffect);
|
||||
QWindowsDrag::m_dragging = false;
|
||||
const DWORD reportedPerformedEffect = dropDataObject->reportedPerformedEffect();
|
||||
if (r == DRAGDROP_S_DROP) {
|
||||
if (reportedPerformedEffect == DROPEFFECT_MOVE && resultEffect != DROPEFFECT_MOVE) {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ public:
|
|||
static QWindowsDrag *instance();
|
||||
void cancelDrag() override { QWindowsDrag::m_canceled = true; }
|
||||
static bool isCanceled() { return QWindowsDrag::m_canceled; }
|
||||
static bool isDragging() { return QWindowsDrag::m_dragging; }
|
||||
|
||||
IDataObject *dropDataObject() const { return m_dropDataObject; }
|
||||
void setDropDataObject(IDataObject *dataObject) { m_dropDataObject = dataObject; }
|
||||
|
|
@ -69,7 +68,6 @@ public:
|
|||
|
||||
private:
|
||||
static bool m_canceled;
|
||||
static bool m_dragging;
|
||||
|
||||
QWindowsDropMimeData m_dropData;
|
||||
IDataObject *m_dropDataObject = nullptr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue