Some changes to fix build for windows

This commit is contained in:
Uwe Kindler
2019-07-12 10:37:14 +02:00
parent d2f751ef87
commit b1309da89a
3 changed files with 11 additions and 9 deletions

View File

@@ -137,7 +137,7 @@ struct DockOverlayCrossPrivate
* Helper function that returns the drop indicator width depending on the
* operating system
*/
qreal dropIndicatiorWidth() const
qreal dropIndicatiorWidth(QLabel* l) const
{
#ifdef Q_OS_LINUX
return 40;
@@ -154,7 +154,7 @@ struct DockOverlayCrossPrivate
QLabel* l = new QLabel();
l->setObjectName("DockWidgetAreaLabel");
const qreal metric = dropIndicatiorWidth();
const qreal metric = dropIndicatiorWidth(l);
const QSizeF size(metric, metric);
l->setPixmap(createHighDpiDropIndicatorPixmap(size, DockWidgetArea, Mode));
@@ -168,7 +168,7 @@ struct DockOverlayCrossPrivate
void updateDropIndicatorIcon(QWidget* DropIndicatorWidget)
{
QLabel* l = qobject_cast<QLabel*>(DropIndicatorWidget);
const qreal metric = dropIndicatiorWidth();
const qreal metric = dropIndicatiorWidth(l);
const QSizeF size(metric, metric);
int Area = l->property("dockWidgetArea").toInt();