Introduced Config::setDropIndicatorsInhibited(bool)
Allows you to disable support for drop indicators while dragging
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "Frame_p.h"
|
||||
#include "DropArea_p.h"
|
||||
#include "DockRegistry_p.h"
|
||||
|
||||
using namespace KDDockWidgets;
|
||||
|
||||
@@ -22,6 +23,14 @@ DropIndicatorOverlayInterface::DropIndicatorOverlayInterface(DropArea *dropArea)
|
||||
{
|
||||
setVisible(false);
|
||||
setObjectName(QStringLiteral("DropIndicatorOverlayInterface"));
|
||||
|
||||
connect(DockRegistry::self(), &DockRegistry::dropIndicatorsInhibitedChanged, this,
|
||||
[this](bool inhibited) {
|
||||
if (inhibited)
|
||||
removeHover();
|
||||
|
||||
// if false then simply moving the mouse will make the drop indicators appear again
|
||||
});
|
||||
}
|
||||
|
||||
void DropIndicatorOverlayInterface::setWindowBeingDragged(bool is)
|
||||
|
||||
Reference in New Issue
Block a user