From e05edc38702f1f1ab2e4e581f421891245efe8b8 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 17 12月 2023 00:30:30 +0800 Subject: [PATCH] Remove redundant file --- src/widgets/widgetwindowagent.cpp | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/widgets/widgetwindowagent.cpp b/src/widgets/widgetwindowagent.cpp index ff76aef..8b6988e 100644 --- a/src/widgets/widgetwindowagent.cpp +++ b/src/widgets/widgetwindowagent.cpp @@ -9,11 +9,9 @@ namespace QWK { - WidgetWindowAgentPrivate::WidgetWindowAgentPrivate() { - } + WidgetWindowAgentPrivate::WidgetWindowAgentPrivate() = default; - WidgetWindowAgentPrivate::~WidgetWindowAgentPrivate() { - } + WidgetWindowAgentPrivate::~WidgetWindowAgentPrivate() = default; void WidgetWindowAgentPrivate::init() { } @@ -22,8 +20,7 @@ : WidgetWindowAgent(*new WidgetWindowAgentPrivate(), parent) { } - WidgetWindowAgent::~WidgetWindowAgent() { - } + WidgetWindowAgent::~WidgetWindowAgent() = default; bool WidgetWindowAgent::setup(QWidget *w) { Q_ASSERT(w); @@ -84,11 +81,6 @@ void WidgetWindowAgent::setHitTestVisible(const QWidget *w, bool visible) { Q_D(WidgetWindowAgent); d->context->setHitTestVisible(w, visible); - } - - void WidgetWindowAgent::setHitTestVisible(const QRect &rect, bool visible) { - Q_D(WidgetWindowAgent); - d->context->setHitTestVisible(rect, visible); } WidgetWindowAgent::WidgetWindowAgent(WidgetWindowAgentPrivate &d, QObject *parent) -- Gitblit v1.9.1