wmayer
abc4e6bf39
Qt6 port:
...
* Constructor of QFontDatabase is deprecated, use static functions instead
* Fix QuantitySpinBox::selectNumber()
* Fix InputField::selectNumber()
* Make InputField::fixup() compatible with Qt6
* QFont::setWeight requires an enum now
* QInputEvent reuires a pointing device now
* QAbstractItemView::viewOptions() has been renamed to QAbstractItemView::initViewItemOption()
2022-11-03 12:38:11 +01:00
0penBrain
81b67e0b67
Gui: optionally disable wheel event when Gui::InputField doesn't have focus
...
Reuse "ComboBoxWheelEventFilter" switch that already acts on combo and spin boxes
2022-10-07 10:40:57 -07:00
berniev
ae53c9b0a4
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
3877fc62c3
Gui: Single arg ctors must be explicit (PR #7369 )
2022-08-24 15:06:03 +02:00
berniev
75fa455c5d
Gui: Use override etc 2
2022-08-09 12:43:23 +02:00
berniev
3d1f70765a
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
berniev
2db561561e
Gui: use empty
2022-08-06 16:35:45 +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
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
82a6241fc5
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
0penBrain
eb38017828
Gui: fix locale number formatting propagation
2022-03-29 10:26:49 +02:00
Uwe
04f693048f
[Gui] a Win compile fix
2022-03-27 15:30:48 +02:00
wmayer
ae61d8df53
Gui: [skip ci] fix locale issue for InputField on Windows
2022-03-27 11:35:46 +02:00
wmayer
8befdb2459
Gui: [skip ci] fix locale issue with InputField
...
The change of 746a2ae40ade added a regression as shown here: https://github.com/FreeCAD/FreeCAD/pull/6640#issuecomment-1079727756
Thus reverting it.
2022-03-26 17:44:05 +01:00
Uwe
e9d8a5da37
[Gui] fix locale issue with InputField
...
fixes the issue first reported here: https://github.com/FreeCAD/FreeCAD/pull/6364#issuecomment-1072886169
Now, since PR #6364 was merged, we must no longer remove the group separator.
(The issue broke for example the FEM results: https://forum.freecadweb.org/viewtopic.php?p=582524#p582524 .)
2022-03-25 22:09:43 +01:00
Uwe
10436cb7f4
[Gui] Manual alignment etc.: remove unused includes
2022-03-02 04:22:48 +01:00
wmayer
f5063af183
Gui: Change label type to ExpressionLabel in ExpressionBinding
...
* Add function ExpressionBinding::makeLabel() and use it in subclasses to reduce code duplication
2021-04-02 17:46:42 +02:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
Benjamin Nauck
d69bbaa51b
[Gui] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
luz paz
38815b9550
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
2647987157
Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15
2020-10-18 14:45:31 +02:00
wmayer
9ed9d30338
Qt5: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is deprecated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
luz.paz
04ba2872f0
src/Gui: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Zheng, Lei
38c47d6e95
Expression: split Expression.h to ExpressionParser.h
...
Split Expression details into a separate header to reduce recompilation
time on changes.
2019-09-28 15:30:41 +02:00
wmayer
5c4ad9eeac
fixes 0003605: Scrolling on length inputs with Building Euro unit system has max value
2019-02-21 13:30:13 +01:00
wmayer
99355b6fd2
fixes 0003823: FEM, unusable material property changing when using task panel
2019-02-18 23:26:00 +01:00
wmayer
46804085c9
simplify handling of locale specific with InputField from Python
2019-01-17 02:57:00 +01:00
wmayer
a6dd02bb75
fixes #0002866 : Gui::InputField rounds values to 2 digits
2018-01-02 12:32:09 +01:00
wmayer
a50b40f8df
remove now superfluous member from InputField
2018-01-02 12:31:32 +01:00
wmayer
3a39ea43c3
respect format option when changing values with wheel or up/down keys in input field
2018-01-02 12:11:45 +01:00
wmayer
dd66a9c9fc
add method toFormat to get number format from character
2017-08-20 18:50:13 +02:00
Oliver Oxtoby
966fbf422b
Base: Add properties to InputField for setting Quantity from Python
...
These additions are designed to allow easier interaction with the
InputField box from Python. Particularly, the ability to put the
format into scientific notation to prevent truncation of values.
There is also a need for a way to input a new value into the
text box such that it is formatted correctly.
- 'quantityString' property - allows to check, set, format and
display the underlying value. The only way to achieve this
currently from Python is to set the widget text, then hide and
re-show it to format the value.
- 'format' property: set to 'f' (fixed - default),
'e' (scientific) or 'g' (general - recommended)
to set the number format from Python or UI file
- 'precision' property: as above, number of decimals/significant
figures if it is desired to override the global default
2017-08-20 16:50:01 +02:00
Markus Lampert
604365a6b8
Do not overwrite tooltips for InputFields.
2017-08-20 10:22:33 +02:00
Kunda
de2392eb18
source typo fixes pt5
...
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
4db41b0b4b
register Quantity type for shiboken2, handle exception to fix abort when setting quantity property of InputField via Python
2016-12-30 22:51:17 +01:00
wmayer
47b41a7883
fixes #0002460 : Use keyword 'explicit' for Quantity constructor
2016-11-05 23:21:42 +01:00
wmayer
2af6bb6e49
replace deprecated auto_ptr with unique_ptr
2016-09-22 13:01:20 +02:00
wmayer
1e6dcabefc
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
maurerpe
5a85155565
Add missing header files
...
Needed for Qt5, recommended for Qt4
2016-02-24 23:55:40 +01:00
Mateusz Skowroński
c275b35d48
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Eivind Kvedalen
8e5619f7a0
Added expression support to QuantitySpinBox and InputField classes.
2015-09-21 14:51:08 +02:00
wmayer
05b921df0d
+ fix bug in read-only InputField, minor Utf-8 issue in meshing dialog
2015-04-22 14:01:27 +02:00
wmayer
4f3f96cba1
+ change selectNumber() to check against the locale signs
2014-08-11 11:07:24 +02:00
wmayer
dd3083f04e
+ fix regression in selectNumber(), + little performance boost, fix whitespaces
2014-08-11 10:46:43 +02:00
Johan K
671a37ed57
Adding selectNumber handling of locale, this wont work with groupseparators
2014-08-03 22:31:57 +02:00
Johan K
d9a5576708
Adding changes
2014-08-03 20:13:05 +02:00
wmayer
552cb1a308
+ Make destructor virtual for classes with virtual methods (based on DevJohan's patch)
2014-07-26 19:17:12 +02:00
wmayer
c504fc56b3
+ fix focus issue with QuantitySpinBox and InputField
2014-07-21 18:28:46 +02:00
wmayer
dbddf8bbda
+ proper handling of group separator in InputField and QuantitySpinBox
2014-07-21 15:03:45 +02:00
wmayer
6201f1a74b
+ fix a couple of issues with InputField used in property editor
2014-06-14 16:22:56 +02:00