Gui: Move define HAS_QTBUG_129596 to separate header file

This commit is contained in:
wmayer
2025-04-25 22:23:06 +02:00
committed by Ladislav Michl
parent 892d636a37
commit 4cfc77d9ee
5 changed files with 14 additions and 4 deletions

View File

@@ -78,6 +78,7 @@ else()
endif()
configure_file(${CMAKE_SOURCE_DIR}/src/QtCore.h.cmake ${CMAKE_BINARY_DIR}/src/QtCore.h)
configure_file(${CMAKE_SOURCE_DIR}/src/QtWidgets.h.cmake ${CMAKE_BINARY_DIR}/src/QtWidgets.h)
function(qt_find_and_add_translation _qm_files _tr_dir _qm_dir)
file(GLOB _ts_files ${_tr_dir})

View File

@@ -137,6 +137,7 @@
#include "WorkbenchManipulator.h"
#include "WidgetFactory.h"
#include "3Dconnexion/navlib/NavlibInterface.h"
#include "QtWidgets.h"
#ifdef BUILD_TRACY_FRAME_PROFILER
#include <tracy/Tracy.hpp>

View File

@@ -30,10 +30,6 @@
#include <App/Application.h>
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) && QT_VERSION < QT_VERSION_CHECK(6,8,1)
# define HAS_QTBUG_129596
#endif
class QCloseEvent;
class SoNode;
class NavlibInterface;

View File

@@ -120,6 +120,7 @@
#include "Dialogs/DlgObjectSelection.h"
#include <Base/Color.h>
#include "QtWidgets.h"
FC_LOG_LEVEL_INIT("MainWindow",false,true,true)

11
src/QtWidgets.h.cmake Normal file
View File

@@ -0,0 +1,11 @@
#ifndef FREECAD_QTWIDGETS_H
#define FREECAD_QTWIDGETS_H
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) && QT_VERSION < QT_VERSION_CHECK(6,8,1)
# define HAS_QTBUG_129596
#endif
#endif // FREECAD_QTWIDGETS_H