Add a DockWidgetViewInterface

to share code between both QtQuick and QtWidget DockWidget views
This commit is contained in:
Sergio Martins
2022-06-15 19:52:34 +01:00
parent 921d94d731
commit 4a3d15432e
6 changed files with 27 additions and 4 deletions

View File

@@ -20,6 +20,7 @@
#define KD_DOCKWIDGET_QUICK_H
#include "kddockwidgets/controllers/DockWidget.h"
#include "kddockwidgets/views/DockWidgetViewInterface.h"
#include "View_qtquick.h"
QT_BEGIN_NAMESPACE
@@ -39,7 +40,7 @@ namespace Views {
*
* Most of the interface lives in Controllers::DockWidget, to facilitate sharing with QtQuick.
*/
class DOCKS_EXPORT DockWidget_qtquick : public Views::View_qtquick
class DOCKS_EXPORT DockWidget_qtquick : public Views::View_qtquick, Views::DockWidgetViewInterface
{
Q_OBJECT
Q_PROPERTY(QObject *actualTitleBar READ actualTitleBarView NOTIFY actualTitleBarChanged)