Controllers don't have any GUI and don't depend on the frontend technology. Views are implemented in a specific GUI tech (QtWidgets, QtQuick, etc). For now only QtWidgets work. There's still a lot to decouple. This will make it easier to introduce non-Qt backends.
28 lines
882 B
C++
28 lines
882 B
C++
/*
|
|
This file is part of KDDockWidgets.
|
|
|
|
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
|
Author: Sérgio Martins <sergio.martins@kdab.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
|
|
|
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <kddockwidgets/FrameworkWidgetFactory.h>
|
|
|
|
#include <QPainter>
|
|
|
|
// clazy:excludeall=ctor-missing-parent-argument
|
|
|
|
class CustomWidgetFactory : public KDDockWidgets::DefaultWidgetFactory
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KDDockWidgets::TitleBar *createTitleBar(KDDockWidgets::Frame *frame) const override;
|
|
KDDockWidgets::TitleBar *createTitleBar(KDDockWidgets::FloatingWindow *fw) const override;
|
|
KDDockWidgets::View *createSeparator(KDDockWidgets::Controllers::Separator *, KDDockWidgets::View *parent = nullptr) const override;
|
|
};
|