forked from qt-creator/qt-creator
Removed set-but-unused variable 'pos'
New warning in GCC 4.6.0. Plenty of other cases.
This commit is contained in:
@@ -278,8 +278,8 @@ void CustomDragAndDrop::enter(QWidget *target, QPoint globalPos)
|
|||||||
|
|
||||||
void CustomDragAndDrop::leave(QWidget *target, QPoint globalPos)
|
void CustomDragAndDrop::leave(QWidget *target, QPoint globalPos)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(globalPos)
|
||||||
if (target) {
|
if (target) {
|
||||||
QPoint pos = target->mapFromGlobal(globalPos);
|
|
||||||
QDragLeaveEvent event;
|
QDragLeaveEvent event;
|
||||||
QApplication::sendEvent(target, &event);
|
QApplication::sendEvent(target, &event);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user