Add DropLocation_Horizontal and DropLocation_Vertical

So we can quickly use a bitwise and to see if an arbitrary
drop location is vertical or horizontal.

(cherry-picked from commit 3260c65a6c)
This commit is contained in:
Sergio Martins
2022-06-19 14:27:32 +01:00
parent 73fd21939f
commit 1f95f67a15
4 changed files with 11 additions and 1 deletions

View File

@@ -76,6 +76,8 @@ static QString iconName(DropLocation loc, bool active)
case DropLocation_None:
case DropLocation_Inner:
case DropLocation_Outter:
case DropLocation_Horizontal:
case DropLocation_Vertical:
return QString();
}
@@ -191,6 +193,8 @@ Indicator *IndicatorWindow_qtwidgets::indicatorForLocation(DropLocation loc) con
case DropLocation_None:
case DropLocation_Outter:
case DropLocation_Inner:
case DropLocation_Horizontal:
case DropLocation_Vertical:
return nullptr;
}