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.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user