diff --git a/src/KDDockWidgets.h b/src/KDDockWidgets.h index aca90042..874de824 100644 --- a/src/KDDockWidgets.h +++ b/src/KDDockWidgets.h @@ -249,7 +249,9 @@ enum DropLocation DropLocation_OutterRight = 128, DropLocation_OutterBottom = 256, DropLocation_Inner = DropLocation_Left | DropLocation_Right | DropLocation_Top | DropLocation_Bottom, - DropLocation_Outter = DropLocation_OutterLeft | DropLocation_OutterRight | DropLocation_OutterTop | DropLocation_OutterBottom + DropLocation_Outter = DropLocation_OutterLeft | DropLocation_OutterRight | DropLocation_OutterTop | DropLocation_OutterBottom, + DropLocation_Horizontal = DropLocation_Left | DropLocation_Right | DropLocation_OutterLeft | DropLocation_OutterRight, + DropLocation_Vertical = DropLocation_Top | DropLocation_Bottom | DropLocation_OutterTop | DropLocation_OutterBottom }; Q_ENUM_NS(DropLocation) diff --git a/src/private/DropIndicatorOverlayInterface.cpp b/src/private/DropIndicatorOverlayInterface.cpp index ee40a8d2..4911a2cd 100644 --- a/src/private/DropIndicatorOverlayInterface.cpp +++ b/src/private/DropIndicatorOverlayInterface.cpp @@ -112,6 +112,8 @@ KDDockWidgets::Location DropIndicatorOverlayInterface::multisplitterLocationFor( return KDDockWidgets::Location_None; case DropLocation_Inner: case DropLocation_Outter: + case DropLocation_Horizontal: + case DropLocation_Vertical: qWarning() << Q_FUNC_INFO << "Unexpected drop location" << dropLoc; break; } diff --git a/src/private/indicators/ClassicIndicatorsWindow.cpp b/src/private/indicators/ClassicIndicatorsWindow.cpp index 6c60875d..06af3fd2 100644 --- a/src/private/indicators/ClassicIndicatorsWindow.cpp +++ b/src/private/indicators/ClassicIndicatorsWindow.cpp @@ -54,6 +54,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(); } @@ -171,6 +173,8 @@ Indicator *IndicatorWindow::indicatorForLocation(DropLocation loc) const case DropLocation_None: case DropLocation_Outter: case DropLocation_Inner: + case DropLocation_Horizontal: + case DropLocation_Vertical: return nullptr; }