wmayer
8dbe26a95f
Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
74bdc701a9
Gui: [skip ci] fix bug when keyboard tracking for QuantitySpinBox is disabled and value is changed by mouse wheel or the spin buttons
2020-06-07 23:38:03 +02:00
wmayer
2c353464c9
Gui: [skip ci] fix bug when keyboard tracking for QuantitySpinBox is disabled and value is changed by mouse wheel or the spin buttons
2020-06-07 11:30:56 +02:00
wmayer
755c537588
Gui: [skip ci] in QuantitySpinBox first set pendingEmit to false before actually emitting the signals
2020-06-02 08:22:24 +02:00
wmayer
e5f6b5dd81
Gui: [skip ci] make QuantitySpinBox to handle disabled keyboard tracking
2020-06-01 18:47:54 +02:00
wmayer
6b2e9d0a6d
Gui: [skip ci] remove superfluous word
2020-04-30 11:35:53 +02:00
wmayer
0d4a29aa0c
Gui: [skip ci] avoid to override the format settings of the quantity after validating the input text
2020-04-28 18:43:50 +02:00
wmayer
ec7ea875a1
Gui: [skip ci] fix size hint of QuantitySpinBox by setting text margins of 2px
...
See https://forum.freecadweb.org/viewtopic.php?f=3&t=45344
2020-04-28 16:53:52 +02:00
wmayer
d8d44f37cb
[skip ci] fix superfluous workarounds
2020-01-09 23:36:28 +01:00
wmayer
74953de3f0
fixes 0004059: Tooltips for Gui::QuantitySpinBox not showing [skip ci]
2020-01-09 22:39:47 +01:00
wmayer
3ab0a20fcd
Gui: [skip ci] when changing expression of a widget then set tooltip only for the label child but not for the widget itself
...
this allows that a custom tooltip can be set
2020-01-09 21:35:13 +01:00
wmayer
c5061f73c5
Gui: [skip ci] avoid weird acronyms in function names
2020-01-09 17:23:12 +01:00
donovaly
910022bafd
QuantitySpinBox: add function to set/change tooltip at runtime
2020-01-07 07:39:28 -03:00
wmayer
ebf585c0c7
Gui: implement size hint for quantity spin box
2019-12-22 11:52:59 +01:00
wmayer
e1b7ef10c7
add posibility to use a unit schema other then the system schema to represent a quantity
2019-12-21 13:35:14 +01:00
wmayer
79ab25a25c
Gui: set/get number of decimals of a quantity spin box
2019-12-20 14:44:40 +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
86b4272971
fixes 0003794: Shortcut-Key is executed in edit field of a constraint (Combo View)
2019-02-16 21:53:23 +01:00
wmayer
448408c28a
Improve usability of expression dialog:
...
+ add signal showFormulaDialog to QuantitySpinBox in order to indicate whether the formula dialog opens or closes
+ when formula dialog opens then hide the button box in the parent dialog, show it again when the formula dialog closes
2018-08-23 12:22:57 +02:00
wmayer
6c0fe8a947
when resetting expression on angle convert value back to radian
2017-10-19 23:47:51 +02:00
wmayer
96d01c9200
fix several kind of warnings:
...
+ fix -Wparentheses/-Wlogical-op-parentheses
+ fix -Wunused-variable
+ disable -Wundefined-var-template due to many false-positives (clang)
+ fix -Winconsistent-missing-override
+ fix -Wmaybe-uninitialized
2017-10-15 19:12:07 +02:00
Markus Lampert
2ddbc6e482
Fixed expression retrieval if no expression is set.
2017-10-10 13:06:35 +02:00
wmayer
8d0dc20c20
support of sub-properties when binding QuantitySpinBox via Python
2017-10-07 19:01:33 +02:00
Markus Lampert
cecc568390
Disabled debug printing.
2017-10-07 15:52:31 +02:00
Markus Lampert
02bd04592c
Added read-only 'expression' property to QunatitySpinBox and renamed 'boundTo' to 'binding'.
2017-10-07 15:52:31 +02:00
Markus Lampert
bec9268ba3
Added boundTo as a property to QuantitySpinBox to enable binding from Python.
2017-10-07 15:52:31 +02:00
wmayer
356aa00193
add new property rawValue to QuantitySpinBox to make it accessible from Python
2017-10-05 22:46:02 +02:00
Eivind Kvedalen
0684109663
ExpressionBinding/QuantitySpinBox: skip updating if bound to a read-only property.
2017-07-26 23:39:00 +02:00
AjinkyaDahale
23d78e55c3
Shortened decimal check code in QuantitySpinBox
2016-10-16 09:30:49 +02:00
wmayer
67e3dc814a
issue #0002712 : Can't use more than one decimal in dimension
2016-10-15 16:27:38 +02:00
wmayer
2af6bb6e49
replace deprecated auto_ptr with unique_ptr
2016-09-22 13:01:20 +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
Stefan Tröger
2c249e69f2
Expressions: Fix property editor behavior
...
- change responsibility of python code emition
- Correct python code handling for expressions
- handle constraints expressions handling
2015-12-09 14:08:50 +01:00
Stefan Tröger
96a586d04a
Expressions: Integrate into the property editor
...
- basic infrastructure for handling of expressions
- port the unit properties editor to support expressions
- port placement editor to support expressions
- expressions for double spinbox
- expressions in sketch constraints
2015-12-09 14:08:48 +01:00
Eivind Kvedalen
68fc3b5917
QuantitySpinBox: Make sure Python code is emitted also when expressions are not used.
...
In that case, the property should be set directly.
2015-11-13 20:26:13 +01:00
Eivind Kvedalen
f33ce91c8f
QuantitySpinBox: Moved getIcon() and some data members to ExpressionBinding class.
...
Conflicts:
src/Gui/QuantitySpinBox.cpp
2015-09-30 15:54:17 +02:00
Eivind Kvedalen
273698307e
QunatitySpinBox: Removed unused code.
2015-09-30 15:54:16 +02:00
wmayer
9b273a723b
+ fix transparent background for Windows systems
...
+ set application-wide event filter and handle mouse press events
+ fix expressPosition() to return exact position of line edit
+ fix warnings in ui file
+ use DlgExpressionInput as non-modal dialog in QuantitySpinBox
2015-09-26 19:36:11 +02:00
Stefan Tröger
4b906690b6
Enhance expression icon
...
- fix size and position on kubuntu
- different icon for set or unset expression for better visual feedback
2015-09-26 19:09:07 +02:00
Stefan Tröger
181e90471f
first take on alternative expression ui input dialog
2015-09-26 19:09:07 +02:00
Eivind Kvedalen
c5fdb0883d
Expression editor: Qt-workaround for '='-key; compare with text() instead.
2015-09-24 09:53:14 +02:00
Eivind Kvedalen
12e79ba65c
QuantitySpinBox: Fixed placement of expression editor pop-up.
2015-09-23 18:48:22 +02:00
Eivind Kvedalen
8e5619f7a0
Added expression support to QuantitySpinBox and InputField classes.
2015-09-21 14:51:08 +02:00
Mateusz Skowroński
763ccd0505
Fix for bugs #2236 & #2237
2015-09-07 15:28:18 -03:00
wmayer
4a176cbe29
+ fix various warnings
2015-08-29 22:05:09 +02:00
wmayer
798a74f9ff
+ fix problem with values > 1000 in quantity spinbox
2015-01-19 21:59:51 +01:00
wmayer
ab9e71fbb3
+ fix gcc build failure
2015-01-19 11:42:45 +01:00
wmayer
94c8c9ed18
+ improve QuantitySpinBox
2015-01-19 00:36:07 +01:00
wmayer
f8604e9a73
+ fixes #0001657 : Sketcher: First digit can not be deleted when editing grid size
2014-12-30 14:18:02 +01:00