Zhao Yuhang
2023-12-14 2452f5958272d50981ab89ff843d2fa715d33957
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);
@@ -60,6 +57,9 @@
        if (!d->context->setTitleBar(w)) {
            return;
        }
#ifdef Q_OS_MACOS
        d->setupMacOSTitleBar(w);
#endif
        Q_EMIT titleBarWidgetChanged(w);
    }