mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Fixes compiler warnings.
This commit is contained in:
parent
94b1fc85fc
commit
a1225545e4
@ -71,7 +71,7 @@ static QPixmap createDropIndicatorPixmap(const QPalette& pal, const QSizeF& size
|
|||||||
gradient.setColorAt(0.f, areaBackgroundColor);
|
gradient.setColorAt(0.f, areaBackgroundColor);
|
||||||
gradient.setColorAt(1.f, areaBackgroundColor.lighter(120));
|
gradient.setColorAt(1.f, areaBackgroundColor.lighter(120));
|
||||||
break;
|
break;
|
||||||
case CenterDropArea:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (areaRect.isValid())
|
if (areaRect.isValid())
|
||||||
@ -328,9 +328,10 @@ static QPair<QPoint, int> gridPosForArea(const DropArea area)
|
|||||||
return qMakePair(QPoint(1, 0), (int) Qt::AlignRight | Qt::AlignVCenter);
|
return qMakePair(QPoint(1, 0), (int) Qt::AlignRight | Qt::AlignVCenter);
|
||||||
case ADS_NS::CenterDropArea:
|
case ADS_NS::CenterDropArea:
|
||||||
return qMakePair(QPoint(1, 1), (int) Qt::AlignCenter);
|
return qMakePair(QPoint(1, 1), (int) Qt::AlignCenter);
|
||||||
}
|
default:
|
||||||
return QPair<QPoint, int>();
|
return QPair<QPoint, int>();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DropOverlayCross::DropOverlayCross(DropOverlay* overlay) :
|
DropOverlayCross::DropOverlayCross(DropOverlay* overlay) :
|
||||||
QWidget(overlay->parentWidget()),
|
QWidget(overlay->parentWidget()),
|
||||||
|
Loading…
Reference in New Issue
Block a user