Prefer Window API, since for QtQuick the root view isn't so tighly coupled with the QWindow as in QWidgets world. Hide the difference in Window_qtwidgets.cpp, which now prefers the QWidget API whenever possible, as that's better tested than using QWindow direclty.
31 lines
779 B
C++
31 lines
779 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 "qtcommon/Window_qt.h"
|
|
|
|
namespace KDDockWidgets {
|
|
class DOCKS_EXPORT Window_qtwidgets : public Window_qt
|
|
{
|
|
public:
|
|
using Window_qt::Window_qt;
|
|
|
|
explicit Window_qtwidgets(QWidget *topLevel);
|
|
~Window_qtwidgets() override;
|
|
std::shared_ptr<ViewWrapper> rootView() const override;
|
|
Window::Ptr transientParent() const override;
|
|
void setGeometry(QRect) const override;
|
|
void setVisible(bool) override;
|
|
};
|
|
|
|
}
|