add cmake option to use Qt or native file dialogs
This commit is contained in:
@@ -1195,6 +1195,10 @@ endif(MSVC)
|
||||
|
||||
add_library(FreeCADGui SHARED ${FreeCADGui_SRCS})
|
||||
|
||||
if (FREECAD_USE_QT_FILEDIALOG)
|
||||
set_source_files_properties(FileDialog.cpp PROPERTIES COMPILE_FLAGS -DUSE_QT_FILEDIALOG)
|
||||
endif()
|
||||
|
||||
target_link_libraries(FreeCADGui ${FreeCADGui_LIBS})
|
||||
|
||||
SET_BIN_DIR(FreeCADGui FreeCADGui)
|
||||
|
||||
@@ -48,10 +48,6 @@
|
||||
|
||||
using namespace Gui;
|
||||
|
||||
#if defined(FC_OS_LINUX)
|
||||
#undef USE_QT_FILEDIALOG
|
||||
#endif
|
||||
|
||||
|
||||
/* TRANSLATOR Gui::FileDialog */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user