Fold MultiSplitter into DropArea

The separation was never very useful. There's was always only
one derived class, the DropArea. Merge the two.
This commit is contained in:
Sergio Martins
2022-04-23 15:22:38 +01:00
parent 4f5ffa2370
commit dc6d77e266
18 changed files with 317 additions and 429 deletions

View File

@@ -21,10 +21,10 @@
#include "qtwidgets/views/TitleBar_qtwidgets.h"
#include "qtwidgets/Window_qtwidgets.h"
#include "private/MultiSplitter_p.h"
#include "private/MDILayoutWidget_p.h"
#include "MDIArea.h"
#include "controllers/DropArea.h"
#include "controllers/DropArea.h"
#include <QWindow>
#include <QDebug>
@@ -219,7 +219,7 @@ bool ViewWrapper_qtwidgets::is(Type t) const
case Type::Layout:
return qobject_cast<LayoutWidget *>(m_widget);
case Type::MultiSplitter:
return qobject_cast<MultiSplitter *>(m_widget);
return qobject_cast<Controllers::DropArea *>(m_widget); // TODOv2
case Type::MDILayout:
return qobject_cast<MDILayoutWidget *>(m_widget);
case Type::MDIArea: