Commit Graph

30783 Commits

Author SHA1 Message Date
wmayer
471df296fa Gui: [skip ci] fix Conda build failure 2022-11-01 22:57:47 +01:00
wmayer
4b08850edb Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed
* QString::medRef() has been removed. Use QString::mid() again.
* QTextStream::setCodec has been removed
* Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible
* Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation
* QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
2022-11-01 16:55:40 +01:00
Bernd Waibel
c70c08f795 Core: Add additional CMake code for building with Qt6
We missed adding CMake code to also build the designer plugin against
Qt6. See https://github.com/FreeCAD/FreeCAD/pull/7647#issuecomment-1297202448

This patch adds the code to enable this.

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2022-11-01 08:44:53 -05:00
Flachy Joe
c2c23169e6 [PartDesign] Improve Helix calculation for straight shape (#7674) 2022-10-31 23:26:10 +01:00
Uwe
8f1b2d157e Revert "[Gui] background default colors"
This reverts commit 86e3c8ebfd6fff9daf7875db0a435d675a177d3c.
2022-10-31 23:18:33 +01:00
wmayer
b1187c4210 Gui: do not allow to remove selected text with drag and drop 2022-10-31 18:48:52 +01:00
wmayer
8f1ef90d8e Gui: [skip ci] improve whitespace and use curly braces 2022-10-31 18:37:45 +01:00
Chris Hennes
1fac3fead0 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
marioalexis
b64d987ac1 TechDraw: Improve code in Python CenterLinePy class 2022-10-31 09:08:52 -04:00
wmayer
1ecfcf3e5e Gui: include needed header 2022-10-31 11:32:06 +01:00
wmayer
bf857c7997 Gui: clear the list of Python wrapper when quitting the application 2022-10-31 11:17:41 +01:00
0penBrain
b7d0c2a1fe Gui: remove forcefully jumping to Python Console bottom line on single LMB click 2022-10-30 21:30:40 -05:00
kaktus Jacek
c8e5cebd64 comment in polish (#7672)
A comment line in Polish was added.
2022-10-30 21:27:23 -05:00
JungHee Lee
e149cf4019 Update org.freecadweb.FreeCAD.desktop with Korean localisation [skip ci] 2022-10-30 20:51:03 -05:00
wandererfan
f6fc9554ec [TD]remove export macros from PreCompiled.h 2022-10-29 19:19:54 -04:00
wandererfan
ee2a4656a1 [TD]fix windows compile warnings 2022-10-29 19:19:54 -04:00
Paddle
5328c5f726 Optional : Point icon color fix. From green to red. This way internal points are yellow. Construction points are blue. The issue is that all normal points are construction. So they appear blue and not red. Not sure if that's a problem. 2022-10-29 20:25:34 +02:00
Paddle
cd3b7e26c6 Fix issues raised by OpenBrain. 2022-10-29 20:25:34 +02:00
Paddle
3f87aa90b1 ElementWidget: Fix extended naming settings not initializing. Adds 'Collapse filter' option. 2022-10-29 20:25:34 +02:00
Abdullah Tahiri
d8b89b2253 Sketcher: ElementWidget - Rename ElementType to SubElementType - make SubElementType nested to ElementItem 2022-10-29 20:25:34 +02:00
Abdullah Tahiri
098a154ad3 Sketcher: ElementItem - do not select/preselect invalid 2022-10-29 20:25:34 +02:00
Paddle
fef871320b SKETCHER: Element widget rework see https://forum.freecadweb.org/viewtopic.php?f=8&t=72239&sid=b7787fadb4c2a7e9682d28f31ede5eb8 2022-10-29 20:25:34 +02:00
Abdullah Tahiri
bcc1b621b9 Sketcher: GeometryFacade - new static function to check for internal alignment 2022-10-29 20:25:34 +02:00
marioalexis
c8aef3b75b TechDraw: Improve code in Python DrawViewPartPy class 2022-10-29 09:01:52 -04:00
Chris Hennes
8ecb72ff74 TechDraw: Windows compilation fix 2022-10-29 08:49:16 -04:00
Chris Hennes
93b496408a CI: Switch to QtWebEngine instead of QtWebKit 2022-10-28 15:03:14 -05:00
wandererfan
86e7f36791 [TD]fix missing include for CI 2022-10-28 08:47:45 -04:00
wandererfan
87cc3fe864 [TD]SectionView/ComplexSection - preview, direction selection
- add preview/live update to TaskSectionView & TaskComplexSection
- add view direction selector to uis
- use SectionNormal as Direction.  Make Direction read-only
- simplify section line end point calculation
- section group command in toolbar
- make section and complex section icons consistent
- fix compsolid cutting tool
- terminology: single/piecewise to offset/aligned
2022-10-28 08:47:45 -04:00
wandererfan
0ff473a9b6 [TD]Complex Section - initial implementation 2022-10-28 08:47:45 -04:00
wmayer
f0c61364f3 Gui: [skip ci] refactor QuantitySpinBox::apply 2022-10-28 00:46:37 +02:00
mosfet80
01fbb10816 Delete fc.sh
Delete unused file
2022-10-27 23:51:46 +02:00
Connor Worrell
0551d0ab53 Gui: Quantity Spin Box changed to use the expression parser (PR #7124) 2022-10-27 23:17:02 +02:00
wmayer
b0633f455b Gui: bind spin boxes of Placement dialog when opening it via menu 2022-10-27 19:30:24 +02:00
sliptonic
168d5043cf Merge pull request #7653 from sliptonic/bug/tagdressup
Fixes #7652  Tag creation bug
2022-10-27 09:55:46 -05:00
Uwe
6d889db9d7 [PD] remove deprecated holes
- as discussed in https://github.com/FreeCAD/FreeCAD/pull/7642 the backwards compatibility for deprecated holes was already lost since FC 0.19
- this PR removes the deprecated types and transform holes created with FC 0.19 or 0.20 to the corresponding countersinks/counterbores.

- also add Counterdrill for translations
2022-10-27 14:24:32 +02:00
wmayer
ebdd4c9af3 Gui: refactor and modernize code of Placement dialog 2022-10-27 00:28:55 +02:00
sliptonic
bc334a81c9 Fixes #7652 2022-10-26 17:04:54 -05:00
wmayer
13b3abc063 Gui: if an expression is set for Euler angles in the placement dialog then evaluate the expression instead of determining the angles from the rotation
See forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=72522
2022-10-26 11:27:46 +02:00
wmayer
c3b0988219 Gui: don't make QuantitySpinBox dependent on implementation details of its base class 2022-10-26 10:54:07 +02:00
Yorik van Havre
e1ef5ef69d Merge pull request #7635 from Jolbas/master
Draft: Accept 1 in NumberPolar parameter
2022-10-26 09:23:25 +02:00
Yorik van Havre
90d0f0efc6 Merge pull request #7616 from Roy-043/Draft-Make-Std_TransformManip-work-for-Draft_Point
Draft: Make Std_TransformManip work for Draft_Point
2022-10-26 09:21:53 +02:00
wmayer
121e4ed03c Gui: don't make QuantitySpinBox dependent on implementation details of its base class 2022-10-26 00:43:33 +02:00
luz paz
a5841ce1ed Spreadsheet: [skip ci] fix doxygen typo 2022-10-25 23:54:35 +02:00
wmayer
2a3737feb0 Gui: in placement dialog use spin boxes for rotation axis 2022-10-25 22:56:56 +02:00
wmayer
1f7618cafa Gui: [skip ci] include header 2022-10-25 22:21:19 +02:00
wmayer
5f48e22bba Gui: [skip ci] Missing reference in range-for with non trivial type (Py::Object) [-Wclazy-range-loop-reference] 2022-10-25 13:36:39 +02:00
wmayer
342666162a Gui: fix possible crash in WrapperManager 2022-10-25 12:48:55 +02:00
Uwe
c31dc73e62 [PD] FeatureHole.cpp: sort counterdrill
- will be necessary to push deprecated entries to the end of the combobox in the dialog (in a coming PR)
- also fix too long code line
2022-10-25 01:09:37 +02:00
Roy-043
7ae40aebd2 Sketcher: Correct icon for Sketcher_CreatePointFillet 2022-10-25 00:33:28 +02:00
wmayer
8b1760971f Gui: cppcoreguidelines-pro-type-reinterpret-cast
Replace an unsafe reinterpret_cast with the safer static_cast
2022-10-24 17:09:53 +02:00