Commit Graph

5777 Commits

Author SHA1 Message Date
Pieter Hijma
e71a4ebeb7 Core: Fix VarSet add property dialog Esc segfault (#17215)
* Core: Fix VarSet add property dialog Esc segfault

* Core: Improve the way disconnect is handled

* Core: Add a check for a non-existing property
2024-10-17 20:14:50 -05:00
Kris Wilk
40cabe8f93 Use Qt built-in to determine the system's preferred fixed-width font 2024-10-16 08:50:00 -05:00
Benjamin Bræstrup Sayoc
139cd7866e [Gui] Fix isBad asserts, by removing old monkey patch
Multiple places in code, asserts for bad types would trigger SIGABRT. This is not just limited to #16316 with SoZoomTranslation, but multiple more places, not described in issue, but I experienced myself. Fixes #16316
2024-10-14 18:16:23 +02:00
wmayer
66b18109cb Core: Directly store text changes made in text object
Store changes made in TextDocumentEditorView immediately to TextDocument. This fixes the issue reported in
https://forum.freecad.org/viewtopic.php?p=786175#p786175
2024-10-14 18:04:45 +02:00
Yorik van Havre
d79015a908 crowdin translations 2024-10-14 17:56:08 +02:00
Yorik van Havre
a698c75581 updated ts files 2024-10-14 17:56:08 +02:00
Furgo
e9bbc75f60 Properly scale link overlays 2024-10-14 17:50:35 +02:00
Jiří Pinkava
6ce4c38a61 Gui: add Qt Platform name to splashscreen information dump
There is several bugs in FreeCAD which are related to platform (mostly wayland),
the hope is this will make it easier to identify the dependence of bug on the platform
2024-10-14 17:44:53 +02:00
Kris Wilk
7d4e114d92 Fix tab order in Add Property Dialog (VarSets) 2024-10-14 17:41:55 +02:00
Jiří Pinkava
fed918a151 Gui: Workaround for crash on close of MDI window
The Qt6 (up to Qt 6.7.3 now) contains bug, which can lead, under
specific circumstances, to crash of the application, when the
MDI window is closed. The circumstances are:

* at least 2 MDI windows needs to be open
* stylesheet muset set different size (border, margin) for activated and un-activated tabBar tab
* the closed window must be inactive, but created before the window now active and open
* race condition must occur betwee the closing and resize event handlers for the tabBar
  (see qt bug for details)

So this bug only occures with Qt6 with the Dark or Light styles selected (no classic) and only if
specific sequence of steps is followed during opening and closing the MDI windows.

The bug is in Qt code path executed when QMdiArea::ActivationHistoryOrder is set.

The other possible workaround might be to change all the affected stylesheets, but this seems to me
impractical and also fragile, because the affected code path will be still active.

https://bugreports.qt.io/browse/QTBUG-129596
2024-10-14 10:32:53 -05:00
MisterMakerNL
4f5f90a71e fixing the checked toolbutton issue in Qsint
https://github.com/FreeCAD/FreeCAD/issues/17230
2024-10-14 08:14:09 -05:00
Pieter Hijma
68817a104e Gui: Fix showing multiple dialogs VarSet add prop 2024-10-11 08:55:15 -05:00
wmayer
2d4049ef52 Core: Check returned pointer of convertSWIGPointerObj 2024-10-10 20:36:03 -05:00
Syres916
6a3915316f [Gui] Disable the ability to change themes and preference packs... 2024-10-10 20:25:30 -05:00
Benjamin Nauck
752b7db98c Make sure splasher is stopped before showing dialog 2024-10-10 16:14:12 -05:00
Bas Ruigrok
db4ab7e1f3 Gui: Fix Touchpad navigation style panning in edit mode 2024-10-07 12:40:35 -05:00
Benjamin Bræstrup Sayoc
5b3ab4759d [Gui] TextEdit, zoom on Ctrl + wheel
Fixes #13861
2024-10-07 18:02:53 +02:00
mwganson
866a274268 [Step Import] fix issue with non-latin characters in import path 2024-10-07 17:43:14 +02:00
Jiří Pinkava
c218bc7fde Gui: fix warning with duplicate name in DlgSettingsLightSources 2024-10-03 13:22:48 -05:00
Kris Wilk
c5210ef989 Placement Dialog: Use default tab order (Fix #16944) 2024-10-03 11:43:42 -05:00
Kris Wilk
d1c04fd193 Prevent using reserved names for properties or aliases (Fix #16846) (#16902)
* Prevent naming properties with reserved words (Fix #16846)

* Prevent using reserved constant names for properties or aliases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* App: Add unit test for isTokenAConstant

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-10-03 10:03:10 -05:00
wmayer
84a307788c Core: Fix macro recording when using module_io 2024-10-02 21:13:19 -06:00
wmayer
d626ed9690 Core: Do not save changes of a text object if the GUI document is about to be closed
This fixes #16873: Text document breaks some Analysis container objects
2024-10-02 20:42:00 -06:00
Pieter Hijma
6175bdc985 Gui: Fix segfault in Expression Editor/VarSet 2024-10-02 20:31:20 -06:00
Benjamin Nauck
4f98a27961 Include a warning to devs for unhandled exceptions
The same situation will cause a crash on at least macOS.
2024-09-30 18:15:14 +02:00
Frank Martinez
47ecb6b401 Revert 9b409da due to a regression in some platforms 2024-09-30 18:06:50 +02:00
wmayer
f6818079d4 Core: Do not set to XY plane by default if the rotation of the image doesn't match 2024-09-28 19:05:52 +02:00
wmayer
1af82e621e Core: Fix resetting placement of transformed image
The restored Euler angles of a rotation may significantly differ from the input Euler angles so that determining the plane isn't very reliable.
To get the plane reliably multiply (0,0,1) with the rotation and use this as reference normal of the plane.
2024-09-28 18:46:35 +02:00
Syres916
a027a81799 [Gui] Qt6 OpenGLWidget - move black rectangle off screen (#16863) 2024-09-27 22:50:59 -04:00
Frank Martinez
0f2da45cbd Splash Screen minimal show time. Issue #16264 2024-09-23 16:06:59 -05:00
bgbsww
48c65aed76 Support macros and console logs in Assembly 2024-09-23 14:10:55 -05:00
Yorik van Havre
3395a8d4a7 Translations (#16754)
* Updated ts files

* merged crowdin translations

* [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>
2024-09-23 14:09:56 -04:00
3x380V
2443f3ebb4 TechDraw: Buggy Wayland custom cursors workaround (#16740)
* Gui: Minor polishing of cursor regression fix

* TD: Buggy Wayland custom cursors workaround

Until Qt v6.6 displaying custom cursors on Wayland is broken,
so add a workaround. See also QTBUG-95434.

Fix is the same as 094c1b10 ("Gui: Buggy Wayland custom cursors workaround")
plus subsequent fixes.
2024-09-23 17:43:10 +02:00
Benjamin Nauck
01bedeaa6f Use backspace as default to delete on mac
Only full size mac keyboards has a specific delete key, most doesn't.
2024-09-21 10:37:30 -05:00
Jiří Pinkava
4e45d3b408 Gui: Fix path to QRC file in PreferencePages UI file
QtCreator, when the file is opened, reports reference to .qrc filewhich
does not exists. It looks like a missing piece from ddcedf76e3.
2024-09-20 08:43:13 -05:00
supermixed
bbb6eeb1ed Core: Import STEP: Cancel button does not cancel (#16499)
* Fix importing .step file when user cancelled import settings dialog
* Refactor object loading python code, fix not using settings when STEP options dialog not shown
* Use custom exception type for user cancelling import instead of `RuntimeError`
* Pull python code out to external file
2024-09-20 08:25:23 -05:00
xtemp09
7e19990264 [GUI] Move the Push In and Pull Out buttons to the left side
Closes #16587.
2024-09-20 08:19:46 -05:00
Frank Martinez
3a6462ad54 Change fixed selection colors to style based palette. Issue #16454 2024-09-20 08:10:21 -05:00
Frank Martinez
e11ed53a31 Issue 16454 workaround: PropertyEditor selection colors 2024-09-20 08:10:21 -05:00
Bas Ruigrok
331c7ad59d Gui: Fix segfault in align to selection tool 2024-09-20 08:06:31 -05:00
bgbsww
85082b72d4 Move the recompute dialog to after Gui opens instead of per document signal. 2024-09-19 08:49:13 -05:00
Yorik van Havre
b97362bf0a Translations (#16582)
* updated ts files

* merged crowdin translations

* [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>
2024-09-19 09:36:54 +02:00
bgbsww
097fd970f5 Gui: fix python syntax in C++ code that broke some compilers (#16614) 2024-09-18 09:06:20 -04:00
Jiří Pinkava
670c42ccf6 Gui: fix size of ComboBox in Preferences/Navigation
Fixes visual artifact in the Preferences/Navigation dialog. The
default value for this field is 0 (at least for some Qt versions),
which does not make sense, because the element would be invisible.

Also the element is actually invisible when editing the UI file in
QtCreator.

Using the default "max" value set for other fields.
2024-09-16 18:07:14 +02:00
bgbsww
16129930ab Add override flag for recomputes; set it in relevant tests with old files. 2024-09-16 17:49:35 +02:00
bgbsww
4a04a7eb91 Move code for recompute dialog and disable warning 2024-09-16 17:49:35 +02:00
Zheng, Lei
c4d5cc5967 Transfer in LS3 code 2024-09-16 17:49:35 +02:00
qewer33
5cea955d44 Update about dialog thumbnail image 2024-09-16 17:46:27 +02:00
Kacper Donat
33cd969280 Gui: Use FreeCAD Theme only for FreeCAD stuff 2024-09-14 17:38:47 +02:00
Chris Hennes
8e070a7c14 Merge pull request #15262 from Rexbas/fix-alignment-direction
Move getGlobalPlacement() and fix alignment direction for transformed objects
2024-09-13 13:09:23 -06:00