Gui: Move define HAS_QTBUG_129596 to separate header file
This commit is contained in:
@@ -78,6 +78,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/src/QtCore.h.cmake ${CMAKE_BINARY_DIR}/src/QtCore.h)
|
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)
|
function(qt_find_and_add_translation _qm_files _tr_dir _qm_dir)
|
||||||
file(GLOB _ts_files ${_tr_dir})
|
file(GLOB _ts_files ${_tr_dir})
|
||||||
|
|||||||
@@ -137,6 +137,7 @@
|
|||||||
#include "WorkbenchManipulator.h"
|
#include "WorkbenchManipulator.h"
|
||||||
#include "WidgetFactory.h"
|
#include "WidgetFactory.h"
|
||||||
#include "3Dconnexion/navlib/NavlibInterface.h"
|
#include "3Dconnexion/navlib/NavlibInterface.h"
|
||||||
|
#include "QtWidgets.h"
|
||||||
|
|
||||||
#ifdef BUILD_TRACY_FRAME_PROFILER
|
#ifdef BUILD_TRACY_FRAME_PROFILER
|
||||||
#include <tracy/Tracy.hpp>
|
#include <tracy/Tracy.hpp>
|
||||||
|
|||||||
@@ -30,10 +30,6 @@
|
|||||||
|
|
||||||
#include <App/Application.h>
|
#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 QCloseEvent;
|
||||||
class SoNode;
|
class SoNode;
|
||||||
class NavlibInterface;
|
class NavlibInterface;
|
||||||
|
|||||||
@@ -120,6 +120,7 @@
|
|||||||
#include "Dialogs/DlgObjectSelection.h"
|
#include "Dialogs/DlgObjectSelection.h"
|
||||||
|
|
||||||
#include <Base/Color.h>
|
#include <Base/Color.h>
|
||||||
|
#include "QtWidgets.h"
|
||||||
|
|
||||||
FC_LOG_LEVEL_INIT("MainWindow",false,true,true)
|
FC_LOG_LEVEL_INIT("MainWindow",false,true,true)
|
||||||
|
|
||||||
|
|||||||
11
src/QtWidgets.h.cmake
Normal file
11
src/QtWidgets.h.cmake
Normal 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
|
||||||
Reference in New Issue
Block a user