Sine Striker
2023-12-21 77f10f7c5eb8716c06eb7e0447c3fd8dbcb48d79
minor tweaks
3个文件已修改
24 ■■■■ 已修改文件
src/core/contexts/abstractwindowcontext.cpp 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/core/shared/qwkwindowsextra_p.h 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/stylesupport/styleagent_p.h 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/core/contexts/abstractwindowcontext.cpp
@@ -81,6 +81,15 @@
        if (m_titleBar == item) {
            return false;
        }
        if (m_titleBar) {
            // Since the title bar is changed, all items inside it should be dereferenced right away
            for (auto &button : m_systemButtons) {
                button = nullptr;
            }
            m_hitTestVisibleItems.clear();
        }
        m_titleBar = item;
        return true;
    }
src/core/shared/qwkwindowsextra_p.h
@@ -16,12 +16,12 @@
#include <QWKCore/qwindowkit_windows.h>
#include <QtGui/QStyleHints>
#include <QtGui/QPalette>
#include <QtCore/private/qsystemlibrary_p.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtGui/QStyleHints>
#include <QtGui/QPalette>
// Don't include this header in any header files.
namespace QWK {
src/stylesupport/styleagent_p.h
@@ -1,6 +1,15 @@
#ifndef STYLEAGENTPRIVATE_H
#define STYLEAGENTPRIVATE_H
//
//  W A R N I N G !!!
//  -----------------
//
// This file is not part of the QWindowKit API. It is used purely as an
// implementation detail. This header file may change from version to
// version without notice, or may even be removed.
//
#include <QWKStyleSupport/styleagent.h>
#include <QtCore/QHash>