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

@@ -61,6 +61,7 @@ public:
CustomizableWidgets m_disabledPaintEvents = CustomizableWidget_None;
qreal m_draggedWindowOpacity = Q_QNAN;
int m_mdiPopupThreshold = 250;
bool m_dropIndicatorsInhibited = false;
#ifdef KDDOCKWIDGETS_QTQUICK
QtQuickHelpers m_qquickHelpers;
#endif
@@ -325,4 +326,18 @@ int Config::mdiPopupThreshold() const
{
return d->m_mdiPopupThreshold;
}
void Config::setDropIndicatorsInhibited(bool inhibit) const
{
if (d->m_dropIndicatorsInhibited != inhibit) {
d->m_dropIndicatorsInhibited = inhibit;
Q_EMIT DockRegistry::self()->dropIndicatorsInhibitedChanged(inhibit);
}
}
bool Config::dropIndicatorsInhibited() const
{
return d->m_dropIndicatorsInhibited;
}
}