Sine Striker
2023-12-17 e05edc38702f1f1ab2e4e581f421891245efe8b8
Remove redundant file
4个文件已修改
1个文件已删除
111 ■■■■■ 已修改文件
src/core/contexts/cocoawindowcontext.mm 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/widgets/CMakeLists.txt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/widgets/widgetwindowagent.cpp 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/widgets/widgetwindowagent_cocoa.cpp 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/widgets/widgetwindowagent_p.h 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/core/contexts/cocoawindowcontext.mm
@@ -104,7 +104,7 @@
            nswindow.hasShadow = YES;
            nswindow.showsToolbarButton = NO;
            nswindow.movableByWindowBackground = NO;
            // nswindow.movable = NO; // This line causes the window in the wrong position when
            nswindow.movable = NO; // This line causes the window in the wrong position when
            // become fullscreen.
            //  For some unknown reason, we don't need the following hack in Qt versions below or
            //  equal to 6.2.4.
src/widgets/CMakeLists.txt
@@ -14,10 +14,6 @@
if(WIN32)
    list(APPEND _src widgetwindowagent_win.cpp)
elseif(APPLE)
    list(APPEND _src widgetwindowagent_cocoa.cpp)
else()
    list(APPEND _src widgetwindowagent_qt.cpp)
endif()
qwk_add_library(${PROJECT_NAME} AUTOGEN
src/widgets/widgetwindowagent.cpp
@@ -57,9 +57,6 @@
        if (!d->context->setTitleBar(w)) {
            return;
        }
#ifdef Q_OS_MACOS
        d->setupMacOSTitleBar(w);
#endif
        Q_EMIT titleBarWidgetChanged(w);
    }
src/widgets/widgetwindowagent_cocoa.cpp
File was deleted
src/widgets/widgetwindowagent_p.h
@@ -19,8 +19,6 @@
#ifdef Q_OS_WINDOWS
        void setupWindows10BorderWorkaround();
#elif defined(Q_OS_MACOS)
        void setupMacOSTitleBar(QWidget *titleBar);
#endif
    };