Kacper Donat
0b3dca895d
Merge pull request #20570 from pieterhijma/varset-dialog-units
...
[Core] Show units in the VarSet add property dialog
2025-04-05 23:19:39 +02:00
Kevin Martin
75b55658a7
Check for a null scene object
...
Under certain unusual circumstances getSceneGraph can be called when the scene is null, causing a native exception when the scene's reference count is incremented.
This changes the code to return python None in this condition, allowing the calling cod eto handle the no-scene case itself.
2025-04-05 18:45:19 +02:00
Kacper Donat
52aec7d639
Merge pull request #20594 from captain0xff/icon-res
...
Gui: make BitmapFactory::pixmapFromSvg dpi aware
2025-04-05 00:32:21 +02:00
Patryk Skowroński
cab9053be8
Added sanity check for an action pointer
2025-04-04 12:31:11 -05:00
captain0xff
08381b1d18
remove some code setting pixel density ratio for pixmaps
...
update
2025-04-03 19:55:27 +05:30
captain0xff
d4de12061e
Gui: make BitmapFactory::pixmapFromSvg dpi aware
...
added getMaximumDPR method and removed a overload of pixmapFromSvg with dpr parameter
update
2025-04-03 19:55:27 +05:30
Leticia Vong
72c1659e4d
GUI: Fix #18806 Toggle freeze behavior
...
Previously, StdCmdToggleFreeze only unfroze child objects using
getInListRecursive(). This update ensures that dependent objects
are properly unfrozen.
Freezing behavior remains unchanged.
2025-04-02 22:28:51 -05:00
Kacper Donat
db08735e10
Merge pull request #20559 from hyarion/refactor/add-limits
...
Add `#include <limits>` in all files where it is used
2025-04-01 17:11:50 +02:00
Pieter Hijma
efcd787777
[Core] Fix value field unit selection
...
Qt automatically selects the text in the value field on creation. This
interferes with the selection when the field has focus. This commit
ensures that the automatic selection is undone.
2025-04-01 13:21:50 +02:00
Pieter Hijma
84468fbc25
[Core] Show units in value editor VarSet dialog
...
Before this change, the units were not shown in the editor for values.
With this change the units (if applicable) are shown in the editor.
2025-04-01 13:21:50 +02:00
Pieter Hijma
4bbc59d309
[Core] Make PropertyItem column usage more clear
...
- Renamed dataProperty -> dataPropertyName because the function returns
variants for the property name.
- Add an enum for the column to remove magic numbers
2025-04-01 13:21:50 +02:00
Benjamin Nauck
bad0daf9dc
Refactor mapToInt/mapToUint
2025-04-01 08:02:42 +02:00
tringenbach
03dd780ef3
Gui: Task overlay HiDPI vertical alignment
2025-04-01 07:53:22 +02:00
Benjamin Nauck
17dc7fce06
Gui: Add #include <limits> where used
2025-03-31 23:50:37 +02:00
Chris Hennes
9c99e73d65
Navlib: Eliminate compiler warnings
...
A few unused variables, and a few cases where clang would prefer it be made clear that an initializer is initializing two separate sub-objects, rather than using a flat list.
2025-03-31 17:47:23 +02:00
Alfredo Monclus
487c62a663
Gui: fix Inputfield valid/invalid icon placement and size ( #20466 )
...
* Gui: fix inputfield icon size placement
* chore:Update inputfield comment to be more clear
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
---------
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-03-31 00:14:19 +02:00
Chris Hennes
e7156aa326
Merge pull request #20496 from hyarion/refactor/cppify-constants
2025-03-29 18:43:40 -05:00
Kacper Donat
caab5fba78
Gui: Fix saving light sources
2025-03-29 14:14:04 -05:00
Benjamin Nauck
34bc1d45ea
Gui: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
Andrea
2f5f8f32e7
Remove old Coin code <=3
...
ubuntu 22.04 use libcoin v 4. https://launchpad.net/ubuntu/jammy/+package/libcoin-dev
2025-03-29 12:16:09 +01:00
João Martins
83c1c76b04
Assembly: Allow more than one assembly deactivation ( #20461 )
...
Fixes #18631 .
2025-03-26 19:25:53 +01:00
Syres916
06b0cbc59f
[Gui] Fix Seg Fault when deleting a Link Array
2025-03-26 17:44:49 +01:00
xtemp09
9d9ee7d9c3
Disconnect signals in destructor to avoid the assert
...
Closes #20272 .
2025-03-26 17:42:34 +01:00
Ladislav Michl
56bcc0fc55
Gui: Language: Sort mapLanguageTopLevelDomain
2025-03-25 18:29:11 +01:00
Furgo
4bb372ef87
Start: set specific zoom level for new BIM projects ( #20271 )
...
* Gui: allow viewDefaultOrientation function to accept the None value, as per the docstring
* Start, BIM: set specific zoom level for new BIM projects
2025-03-25 09:36:43 +01:00
Chris Hennes
50bc99c3eb
Merge pull request #20428 from pieterhijma/fix-doxygen-structural-warnings
...
Fix doxygen structural warnings
2025-03-24 21:07:53 -05:00
Joao Matos
74493358da
Gui: Remove XML binding files.
2025-03-24 22:47:33 +01:00
Joao Matos
0206ff59cd
CMake: Fix build dependency tracking for Python bindings generation.
...
This caused a rebuild to always happen due to incorrect dependency
tracking.
Fixes https://github.com/FreeCAD/FreeCAD/issues/20402 .
2025-03-24 21:43:31 +01:00
j-hap
aa725c6866
TechDraw: Replace annotation edit dialog with QPlainTextEdit ( #20092 )
...
* TechDraw: Replace annotation edit dialog with QPlainTextEdit
* Remove useless include introduced in previous commit
* Remove trailing _ for members to conform with rest of the codebase
* Add const & to string vectors that don't need copying
* Fix IWYU linter warnings
* Forward all annotation double clicks to the StringList property editor
* Remove unused dialog
* Fix Qt 5 build error
* Fix missing exports with MSVC
2025-03-24 13:27:55 -04:00
Kacper Donat
4c5c88bcf4
Gui: Remove -1 min-width from dialog buttons
...
This ensures that minimum width from QStyle is still applied while buttons still respect minimum size hint
2025-03-24 12:25:56 -05:00
tritao
7cbbe403cc
Gui: Convert XML bindings to Python API bindings model.
...
This converts the existing XML binding files to the new Python bindings
generator model.
2025-03-24 11:56:53 -05:00
Pieter Hijma
00428ff014
[Doc] Fix multiple use section label
2025-03-24 16:33:54 +01:00
Chris Hennes
97638e0c82
Gui: Check return value from getDetail()
...
Coverity issue 251377. Every other use of this method follows this idiom, update the last call to match.
2025-03-23 22:47:30 +01:00
Chris Hennes
90432f967f
Gui: Eliminate implicit capture of this via =
...
Per clang: "implicit capture of 'this' with a capture default of '=' is deprecated"
2025-03-23 18:23:37 +01:00
Chris Hennes
a546517588
Gui: Check return value
...
Coverity issue 513113
2025-03-23 08:51:38 +01:00
Bas Ruigrok
ffc12e2892
Gui: Align to selection using a smaller rotation
2025-03-22 11:35:46 -05:00
xtemp09
b3008feaa1
[Spreadsheet] Fix input in expression editor ( #19934 )
...
* [Spreadsheet] Fix input in expression editor
Closes #19804
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-22 11:25:17 -05:00
Chris Hennes
28e07eeda5
Gui: Don't allow manipulator to delete the menubar
...
Same for the toolbar or context menu.
2025-03-22 07:15:15 +01:00
Alfredo Monclus
02f37bf598
Gui: spinbox use getmargin
2025-03-20 14:23:36 +01:00
Alfredo Monclus
ad95704832
Gui: spinbox add patch for qt<6.3
2025-03-20 14:23:36 +01:00
Alfredo Monclus
1012b66f4f
Gui: fix spinbox numbers should not go under the icon
2025-03-20 14:23:36 +01:00
Alfredo Monclus
6693947ca1
Gui: correct the size and position of the expression (fx) icon
2025-03-20 14:23:36 +01:00
Guillaume Roguez
e127f2c884
fix dialogs button size in case of long text
...
Let the layout engine computes the size of all QPushButton by unset
the minimalSize value set by "min-width" QSS property in themes.
Fix #18019 .
2025-03-19 13:37:47 +01:00
Chris Hennes
64d658e38a
FreeCAD: Compiler warning fixes
2025-03-19 10:13:34 +01:00
Chris Hennes
c1ada6bc40
App: Coverity fixes
2025-03-18 15:59:22 +01:00
Chris Hennes
e574fa1efc
Merge pull request #19899 from tritao/cmake-cleanup-targets
...
CMake: Cleanup targets with transitive dependencies
2025-03-17 13:15:37 -05:00
Benjamin Bræstrup Sayoc
d80795b2e4
Gui: fix centering in color button
2025-03-17 15:19:00 +01:00
tritao
6c2c6847eb
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Chris Hennes
5f623390fb
Merge pull request #20142 from bofdahof/ranges
...
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
Chris Hennes
42cc0d93be
Merge pull request #20160 from karliss/popup-parent
...
Add missing parent for messagbox and other popups.
2025-03-17 00:16:49 -05:00