/* This file is part of KDDockWidgets. SPDX-FileCopyrightText: 2020-2022 Klarälvdalens Datakonsult AB, a KDAB Group company Author: Sérgio Martins SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only Contact KDAB at for commercial licensing options. */ #pragma once #include "ViewWrapper.h" #include namespace KDDockWidgets::Views { /// @brief A View that doesn't own its QWidget /// Implements a View API around an existing QWidget /// Useful for widgets that are not created by KDDW. class DOCKS_EXPORT ViewWrapper_qtwidgets : public ViewWrapper { public: explicit ViewWrapper_qtwidgets(QWidget *widget); private: QWidget *const m_widget; }; }