17 Commits

Author SHA1 Message Date
Nyall Dawson
dcf7a98e0c Apply suggestions from code review 2023-04-05 11:17:19 +10:00
Nyall Dawson
7e0e421af7 PyQt doesn't provide repr for QColor, but it's highly desirable!
So monkey patch one in ourselves
2023-04-05 11:17:19 +10:00
Loïc Bartoletti
eaa0642bab indent QtCore.py 2020-11-28 05:24:54 +10:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
b53d64bfb0
Silence annoying PyQt5.uic.loadUiType deprecation warnings
These aren't our fault -- they come from the PyQt library itself,
so we may as well hide them and avoid the noise.
2019-03-02 12:07:46 +10:00
Alessandro Pasotti
6c218b8032 Fix import sip on python 3.5 2018-10-24 11:13:54 +02:00
Nyall Dawson
0fad3e5731 Fix build with newer sip versions
Fixes #19476
2018-10-24 08:10:50 +10:00
Juergen E. Fischer
2c53630747 add missing copyright headers 2018-02-18 20:53:40 +01:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Marco Bernasocchi
359063f545 Add qgis.PyQt.Qt compat files (#3491)
* added PyQt.Qt

* fix matthias comments
2016-09-16 08:09:47 +02:00
Webmaster
9d22440c56 fix to support PyQt5 5.7 2016-09-04 16:30:23 +07:00
Matthias Kuhn
ced7c27dcf [py3] Use __bool__ instead of __nonzero__ 2016-05-22 21:52:55 +02:00
Matthias Kuhn
7dfc69657f Migrate provider test to python 3 2016-05-13 22:23:03 +02:00
Matthias Kuhn
89b7a4aaa2 Introduce NULL QVariant to PyQt5 2016-05-13 22:23:03 +02:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Matthias Kuhn
47543d940e [py3] Add PyQt5/PyQt4 compatibility layer 2015-11-16 07:42:48 +01:00