From e9ce49b601b412050e9709a3474e51950dccd5a9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周一, 11 12月 2023 14:56:22 +0800 Subject: [PATCH] add empty qml demo --- src/core/corewindowagent.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/corewindowagent.h b/src/core/corewindowagent.h index 56c9b99..1681acc 100644 --- a/src/core/corewindowagent.h +++ b/src/core/corewindowagent.h @@ -1,6 +1,8 @@ #ifndef COREWINDOWAGENT_H #define COREWINDOWAGENT_H +#include <memory> + #include <QtCore/QObject> #include <QWKCore/qwkcoreglobal.h> @@ -13,7 +15,7 @@ Q_OBJECT Q_DECLARE_PRIVATE(CoreWindowAgent) public: - ~CoreWindowAgent(); + ~CoreWindowAgent() override; enum SystemButton { Unknown, @@ -24,6 +26,7 @@ Close, NumSystemButton, }; + Q_ENUM(SystemButton) public Q_SLOTS: void showSystemMenu(const QPoint &pos); @@ -33,9 +36,9 @@ void raise(); protected: - CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); + explicit CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); - QScopedPointer<CoreWindowAgentPrivate> d_ptr; + const std::unique_ptr<CoreWindowAgentPrivate> d_ptr; }; } -- Gitblit v1.9.1