berniev
066656f62a
Gui: use emplace_back
2022-08-05 10:33:41 +02:00
Uwe
8a114eb798
[Gui] QSint: missing piece to fix QGroupBox visibility
...
- also the freecadscheme must be adapted (e.g. for PartDesign dialogs)
- fixes now #6102 completely
2022-08-03 01:05:37 +02:00
wmayer
0de3b2892e
PyCXX: change typedef of PyCxx_ssize_t to fix compiler warnings with MSVC
2022-08-02 16:58:25 +02:00
Uwe
0e77b99c71
- fixes #6102
...
- the point is that we don't set any style for the group boxes, therefore the Windows style is applied as nothing was set yet. The default Windows style is the color #dddddd which is hardly visible on our blue default style.
as solution set an explicit color.
2022-08-02 01:00:03 +02:00
wmayer
08d9d73e18
Gui: [skip ci] modernize QuantitySpinBox class
2022-07-31 13:59:28 +02:00
Zheng, Lei
c443b8de53
Gui: fix ViewProviderLink transform with scale
...
Fixes FreeCAD/FreeCAD#7113
2022-07-30 19:12:03 +02:00
Uwe
ed009d500c
[Gui] [skip CI] PropertyItem: some .clang spacing uniformication
...
- automatically done by MSVC
2022-07-30 15:32:08 +02:00
Uwe
ef81bdfd42
[Gui] move a NaviCube parameter to the NaviCube parameter group
...
- at the moment some NaviCube parameters are in the general View group, some in the dedicated NaviCube group
2022-07-30 00:50:12 +02:00
wmayer
45576f87c8
Gui: [skip ci] mkae sure the tooltip in ActionGroup::onActivated() disappears again
2022-07-28 16:33:27 +02:00
wmayer
ff4857d953
Gui: help clazy with missing include
2022-07-27 07:43:24 +02:00
Uwe
32041689c4
[Gui] fix unreferenced local variable warning
...
- fixes: warning C4101: 'e': unreferenced local variable
2022-07-27 01:35:08 +02:00
wmayer
3293f54a50
Gui: help clazy checker with export macro
2022-07-27 01:19:43 +02:00
wmayer
7a4d29e87a
Gui: Use new-style syntax of connect()
...
When fixing clazy issues -Wclazy-fully-qualified-moc-types then old-style syntax of connect() may fail. Thus, replace it with the new-style syntax
2022-07-26 16:32:18 +02:00
0penBrain
b3cbedcc4e
Make image scaling command aware of user units ( #7222 )
...
* Image: image scaling command is user unit aware ; fixes #6118
- if unitless value entered, InputField uses user choosen base unit
Before change, always used FC core base unit
Only applies to GUI user entered values, value changed programmatically still ...
... considered in core base unit if applied unitless
2022-07-25 21:17:02 +02:00
wmayer
5782a9429a
Fix several clazy issues:
...
* Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary]
2022-07-25 00:19:41 +02:00
wmayer
76c993baae
Fix several clazy issues:
...
* Don't call ... on temporary [-Wclazy-detaching-temporary]
2022-07-25 00:18:42 +02:00
wmayer
923ebef729
Fix several clazy issues:
...
* Mixing iterators with const_iterators [-Wclazy-strict-iterators]
2022-07-25 00:04:04 +02:00
wmayer
85bd6b5c6b
Fix several clazy issues:
...
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
wmayer
25483b78be
Fix several clazy issue:
...
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
2022-07-24 22:29:06 +02:00
wmayer
916c814219
Fix several clazy issue:
...
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use an empty QLatin1String instead of an empty QStringLiteral [-Wclazy-empty-qstringliteral]
* getter Gui::ProgressBar::canAbort possibly mismarked as a slot [-Wclazy-const-signal-or-slot]
* Missing emit keyword on signal call [-Wclazy-incorrect-emit]
2022-07-24 20:07:04 +02:00
wmayer
fd5558f295
Fix several clazy issue:
...
* Using copy-ctor but class SbMatrix/SbViewportRegion has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
2022-07-24 19:38:59 +02:00
wmayer
3fddaf4a2f
Fix several clazy issues:
...
* Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
* Use Q_ENUM instead of Q_ENUMS [-Wclazy-qenums]
* Add missing a Q_OBJECT macro [-Wclazy-missing-qobject-macro]
* Signal/Slot arguments need to be fully-qualified [-Wclazy-fully-qualified-moc-types]
2022-07-24 19:03:30 +02:00
Uwe
0a67a39065
[Gui] [skip CI] Selection: a formatting style fix
2022-07-22 02:09:25 +02:00
Chrismettal
404b481625
[Stylesheets] Remove whitespace and add "checked" icon style
2022-07-22 02:05:49 +02:00
wmayer
108c64dc46
Gui: fix crash in ViewProviderLink::currentDraggingPlacement() if there is no active dragger
2022-07-19 10:40:32 +02:00
Uwe
c40e476a5b
[Gui] remove some more superfluous nullptr checks
2022-07-18 13:15:38 +02:00
Uwe
d2ccbc75c4
[Part] cleanup new preferences Feature
...
- correct preferences location
- handle preferences packs
- remove unused code
2022-07-18 12:42:26 +02:00
Uwe
d5b227e6a6
[Gui] remove more superfluous nullptr checks
2022-07-18 03:34:22 +02:00
Uwe
bb2b49fb1f
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
wmayer
07ccb73fe7
Partially revert "Remove unused code into GUI"
2022-07-17 12:32:03 +02:00
andrea
7886d3cbf4
Remove unused code into GUI
2022-07-17 03:53:11 +02:00
wmayer
654de93621
Gui: implement mechanism to set a custom icon name or tooltip of a preferences group
2022-07-16 19:27:22 +02:00
wmayer
6d4f22a970
Gui: fix crash in ExpressionCompleter::slotUpdate
...
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=69931
2022-07-16 18:23:42 +02:00
Uwe
0c5407b63d
[Gui] preferences: clarify Part/PD page
...
- users are confused that we have a preferences page named "Part design" that also defines things for the Part WB. The Wiki is clear that the preferences page is for both, Part and PD, however the UI is not.
This PR makes this clear.
2022-07-16 16:20:36 +02:00
Uwe
b0065c5827
[Gui] preferences: add button to switch gradient colors
...
- when finding a suitable background color gradient, it is annoying that there is no button to switch the begin/end color of the gradient. With the button one can quickly see the the changes and find a suitable gradient much quicker
2022-07-16 16:05:54 +02:00
wmayer
ab6c75fad9
Core: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 14:04:05 +02:00
wmayer
a8ac45b090
Replace std::ignore with boost::ignore_unused()
...
According to https://isocpp.org/blog/2016/09/quick-q-stdignore-for-ignoring-unused-variable std::ignore is not supposed to be used for this
2022-07-15 13:15:47 +02:00
wmayer
0140ca6efc
Gui: [skip ci] print debug information in GuiNativeEvent::tdx_drv_handler
2022-07-14 16:00:02 +02:00
wmayer
c697f3c159
Gui: [skip ci] improve whitespaces in GuiNativeEvent::tdx_drv_handler
2022-07-14 15:49:36 +02:00
wmayer
b1147c047a
Gui: move QuiLoader for MinGW to global namespace
2022-07-14 14:44:56 +02:00
Uwe
0cc0de67b2
[Gui] ViewProviderGeometryObject: fix color and transparency
...
- fixes the issue reported in
https://forum.freecadweb.org/viewtopic.php?p=609353#p609353
the color and transparency are childs of the material and have to be set as such.
- also some code style fixes done automatically by MSVC
2022-07-13 05:42:21 +02:00
Uwe
f3a986de23
Revert "[Gui] preferences: add button to switch gradient colors"
...
This reverts commit 535e49f1c16311feed63097934a6175a45498f43.
2022-07-10 02:20:58 +02:00
Uwe
918f1e562a
[Gui] preferences: add button to switch gradient colors
...
- when finding a suitable background color gradient, it is annoying that there is no button to switch the begin/end color of the gradient. With the button one can quickly see the the changes and find a suitable gradient much quicker
2022-07-10 02:19:01 +02:00
Uwe
06157e3e3d
[Gui] [skip CI] DlgPreferencesImp: a code style improvement
2022-07-10 00:14:34 +02:00
Uwe
030aba9b92
[Part] [PD] add preferences setting for transparency
...
- allow to specify the default transparency for new shapes
2022-07-09 23:24:17 +02:00
0penBrain
43772e985c
Gui: implement temporary blocker for console observer
2022-07-05 13:35:18 +02:00
0penBrain
077114163a
[BUGFIX] Gui: correctly restore message type enabling in report view
2022-07-05 13:35:18 +02:00
0penBrain
1f1551bb5e
[BUGFIX] Gui: correctly save and restore warning type enabling in report view
2022-07-05 13:35:18 +02:00
wmayer
b3eca1447d
Gui: show thumbnails in file dialog
2022-07-04 14:49:53 +02:00
wmayer
ac2e215119
Gui: make sure to use FileIconProvider in FileDialog and delete it after closing the dialog
2022-07-04 13:17:11 +02:00