Support re-ordering tabs with mouse

Just set KDDockWidgets::Config::Flag_AllowReorderTabs before creating
the dock widgets.

Fixes #20
This commit is contained in:
Sergio Martins
2019-12-26 15:13:02 +00:00
parent a29a33a46d
commit 927510dfff
6 changed files with 58 additions and 5 deletions

View File

@@ -155,17 +155,17 @@ bool StatePreDrag::handleMouseMove(QPoint globalPos)
{
if (q->m_draggable->dragCanStart(q->m_pressPos, globalPos)) {
Q_EMIT q->manhattanLengthMove();
return true;
}
return true;
return false;
}
bool StatePreDrag::handleMouseButtonRelease(QPoint)
{
Q_EMIT q->dragCanceled();
return true;
return false;
}
StateDragging::StateDragging(DragController *parent)
: StateBase(parent)
{