Commit Graph

22 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
9fe130cd73 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
Markus Reitböck
a72a0d6405 Gui: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:03 +02:00
xtemp09
887e7bd595 Simplify repr() function 2025-08-25 10:38:39 -05:00
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
cc49ba60ee Gui: fix some lint warnings 2023-03-19 03:19:49 +00:00
Alexander Golubev
35ae3750b9 Gui: Prevent UiLoader from loading 3rd-party Qt plugins.
Due to a flaw in the QUiLoader, UiLoader were loading all designer plugins
it can find in QApplication::libraryPaths(). This in general a bad
practice and leads to bugs due to some plugins may perform some unexpected
actions upon load which may interfere with FreeCAD's functionality.

To avoid such problems reset the libraryPaths before creation of a
UiLoader object.

Also move setLanguageChangeEnabled(true) into constructor due to it's
called every time it's being instanced anyway.

See: https://github.com/FreeCAD/FreeCAD/issues/8708
2023-03-18 17:59:50 +01:00
wmayer
fe968bc4db Gui: enable language change by default 2023-02-23 16:38:45 +01:00
wmayer
10dffdb501 Gui: expose more methods of UiLoader to Python 2023-02-23 16:38:45 +01:00
wmayer
d91de9ceb2 Core: Qt6 migration, use PySide 2022-11-06 14:09:18 +01:00
marioalexis
ff1b4eff05 Gui: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
b1147c047a Gui: move QuiLoader for MinGW to global namespace 2022-07-14 14:44:56 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
5df3dbae6f Gui: PR6497 move return statement to new line 2022-03-29 12:33:50 -05:00
andrea reale
83d3a916c0 remove QT4 references 2022-03-19 23:07:38 +01:00
Uwe
05be6352f3 [Gui] UiLoader: fix compiler warning
code by @wwmayer

as discussed here: https://forum.freecadweb.org/viewtopic.php?f=4&t=66137&p=570597
and here: https://forum.freecadweb.org/viewtopic.php?p=578860#p578860
2022-03-13 17:39:50 +01:00
Uwe
9de55d010c [Gui] Tool* etc.:remove unused includes 2022-03-05 18:08:13 +01:00
wmayer
edf7fe4c7c Gui: use cbegin()/cend() for const_iterator 2021-09-23 11:17:42 +02:00
wmayer
4397c0f520 Gui: modernize some classes 2021-09-23 11:00:50 +02:00
wmayer
806f004f12 Gui: implement a workaround for MSYS2 to access QUiLoader via its Python interface 2021-09-23 09:46:20 +02:00
wmayer
21ba35adab Gui: move PythonWrapper class to its own source file 2021-09-22 23:30:03 +02:00
wmayer
bc5c585c8b Gui: move Ui loader classes to their own source files 2021-09-22 20:31:01 +02:00