Introduced Config::setDropIndicatorsInhibited(bool)

Allows you to disable support for drop indicators while dragging
This commit is contained in:
Sergio Martins
2021-05-18 18:00:04 +01:00
parent fc028ec0be
commit cd0f2f4e33
7 changed files with 50 additions and 1 deletions

View File

@@ -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)