Commit Graph

60 Commits

Author SHA1 Message Date
wmayer
d1e255f8d9 issue #0003984: Creating a Path Job object fails with 'PySide2.QtWidgets.QDialog' object has no attribute 'templateGroup' 2019-06-22 12:32:36 +02:00
wmayer
f839b31478 py3/py2: use exec as function 2019-05-10 17:15:33 +02:00
Mateusz Skowroński
ac508516da Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
wmayer
d65b6b67c0 check for existence of PySide stuff when defining convertWrapperToQuantity 2018-10-24 23:12:59 +02:00
wmayer
36f776aab8 restore shiboken wrapper for Base::Quantity 2018-10-24 22:27:59 +02:00
wmayer
4f56186d1b remove unused shiboken wrapper for Base::Quantity 2018-10-16 19:31:33 +02:00
Michal Ulianko
2e2b8cba6a py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
3ea8ae06ff generic wrapper/unwrapper for PySide and PyQt classes 2018-08-18 22:12:00 +02:00
luz.paz
68c4b22315 Source typos fixes 2018-05-11 10:02:56 -03:00
wmayer
99ec96acd5 prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
Daniel Rogers
c79fe60e29 Add missing const_cast
I missed a const_cast and a pointer dereference when inlining the
code from shiboken2
2018-01-24 17:51:42 +01:00
Daniel Rogers
d59a2c2817 Fix compliation against shiboken2 head
shiboken2 changed type conversion and removed a wrapper.
This just deleted the class definition that is not longer valid and inlines
code in a few places.

fixes #3287
2018-01-24 17:51:42 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
4d63e9a4c4 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
057192f314 py3: fix several crashes 2017-06-04 11:12:53 +02:00
Yorik van Havre
1fb606f65d py3: Gui: files P-Z ported to python3 2017-05-06 20:11:31 +02:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
1e049a5e95 wrapper for QVariant <> Base::Quantity <> PyObjectWrapper 2017-01-15 15:24:04 +01: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
33dfc33389 implement getWrapperName to get class name with shiboken wrapper 2016-12-30 16:52:59 +01:00
wmayer
6bf33753d6 comment out unused global functions, fix -Wconstant-logical-operand 2016-12-30 14:38:49 +01:00
wmayer
e0a89c17d2 fix & suppress warnings of generated code 2016-12-30 13:31:31 +01:00
wmayer
cf263fe232 make some PySide2 specific changes 2016-12-24 17:55:00 +01:00
wmayer
577ed59fbc switch to PySide2 for Qt5 2016-12-24 15:33:15 +01:00
maurerpe
e2c8837f99 Update for PyQt5.
This change is Qt5 specific.
2016-12-24 15:33:15 +01:00
wmayer
11ffc5bca9 Linux specific Qt5 port 2016-12-13 19:47:32 +01:00
wmayer
8a93f7dbf2 issue #0002744: FR: check box to export STEP w/without pcurves 2016-10-22 19:44:11 +02:00
wmayer
d28743f35e extend creation of preferences pages from Python 2016-10-22 16:48:02 +02:00
wmayer
03c5be4804 suppress warning caused by shiboken header file with gcc 2016-10-02 20:13:02 +02:00
wmayer
d88ecd5f56 fix -Wunused-parameter 2016-09-23 16:37:12 +02:00
wmayer
fb9cd567d3 fix msvc problems 2016-09-21 22:14:09 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
683f943d38 Coverity issues:
129097
129098
129099
129101
129102
129132
129134
129203
2016-08-16 16:34:51 +02:00
Mateusz Skowroński
d13882fcb3 Qt5 compatibility changes.
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
QChar::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().

This change is Qt4/Qt5 neutral.
2016-02-14 08:23:00 +01:00
wmayer
f9694de1a8 + move handwritten Python classes to PyCXX 2016-01-27 18:07:48 +01:00
Mateusz Skowroński
6942c23895 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +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
Mateusz Skowroński
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
7548e4cb30 + fix clang warnings 2015-10-02 23:32:01 +02:00
wmayer
6b67d4a4e7 + replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes 2015-09-27 22:08:08 +02:00
wmayer
b5987f0ff4 + Support preference pages for Python widget class 2015-07-16 00:10:23 +02:00
wmayer
092f10f49c Expose attribute to Python to access icon of view provider 2015-06-02 16:21:56 +02:00
wmayer
ae15c2df21 + minor fix 2014-11-19 22:56:29 +01:00
wmayer
5f6a457cb0 + handle unicode strings in class PythonWrapper 2014-11-19 11:18:18 +01:00
wmayer
be949a054d + harmonize API 2014-10-19 14:25:51 +02:00
wmayer
e32b636fc9 + fix path separator issue in widget factory 2014-06-04 13:28:33 +02:00
wmayer
a8fe58d93b + use Quantity type as QVariant, add quantity property to InputField and implement a PySide converter 2014-04-01 15:43:40 +02:00
wmayer
847f3f27e0 + Implement alternative to load ui files without using PySide's QtUiTools module 2014-02-22 18:49:22 +01:00
wmayer
b838853581 + Fix in ui loader 2014-01-10 14:22:30 +01:00
wmayer
f197f575ae + Prepare PySide to work with custom widgets 2014-01-09 23:49:41 +01:00