Add Platform_qt, a baseclass for both Qt frontends

So we can share some code between QtQuick and QtWidgets
This commit is contained in:
Sergio Martins
2022-04-07 23:48:40 +01:00
parent 427af43904
commit 95671f9d9a
7 changed files with 66 additions and 16 deletions

View File

@@ -11,19 +11,18 @@
#pragma once
#include "Platform.h"
#include "qtcommon/Platform_qt.h"
namespace KDDockWidgets {
/// @brief implements functions specific to a particular platform
/// A platform can be for example qtwidgets, qtquick, etc.
class DOCKS_EXPORT Platform_qtquick : public Platform
class DOCKS_EXPORT Platform_qtquick : public Platform_qt
{
public:
Platform_qtquick();
~Platform_qtquick() override;
const char *name() const override;
std::shared_ptr<ViewWrapper> focusedView() const override;
std::shared_ptr<ViewWrapper> qobjectAsView(QObject *) const override;
private: