Commit graph

8 commits

Author SHA1 Message Date
luz paz
f4dcf6557f Fix various typos in the source code
## Description
Fix various typos in the source code. This includes user facing code, documentation, and source comments. This PR has not been tested.
Closes #1605
2022-01-22 07:39:05 -05:00
Yann Lanthony
6d07323580
[ui] compatibility fixes for PySide2 5.12.x 2019-05-07 10:39:20 +02:00
Yann Lanthony
1f2baf43c3 [ui.utils] makeProperty: generate and store reset calllback on instance
* change 'destroyCallback' function to 'resetOnDestroy' boolean parameter
* create a dedicated lambda to reset value to None when object is destroyed and attach it to the target instance
* only way to keep a reference to this function that can be used for destroyed signal (dis)connection with instance accessible
2018-12-13 15:54:44 +01:00
Yann Lanthony
9534e75552 [ui.utils] makeProperty: destroyCallback mechanism for QObject-type properties
allow to be warned when the underlying value of a QObject-type property has been destroyed and react to this
2018-12-07 16:07:42 +01:00
Yann Lanthony
a64d7efc62 [ui][utils] add makeProperty helper function
allows to  create a Qt property with generic getter/setter
2018-07-26 19:06:18 +02:00
Yann Lanthony
8823dba87f [utils] QmlInstantEngine: fix spurious consecutive reloads issue
Fix the problem with the application taking up all the CPU after a few reloads while using a Qt3D Scene.
When a file changes, wait for a few milliseconds before adding it back to the watch  list. This prevents the system to reload the engine twice for a same fileChanged event (happens with some text editors).
2018-02-05 19:16:45 +01:00
Yann Lanthony
83c6d68954 [ui] add palette variation for dark theme
Crtl+Shift+P allows to toggle between light and dark theme on the fly
2017-11-17 17:40:27 +01:00
Yann Lanthony
81398e63a6 [ui] add and use QmlInstantEngine for QML hot reload 2017-10-06 15:56:38 +02:00