27 Commits

Author SHA1 Message Date
Nyall Dawson
0fc05051dd Fix docstrings for QgsDateRange/QgsDateTimeRange
We can't rely on sip to generate these -- it outputs malformed
docstrings where the constructor docs are incorrectly placed
before the class docstrings
2025-04-11 10:03:58 +10:00
Nyall Dawson
3f6b490218 Sipify 2025-04-02 11:11:10 +10:00
Jacky Volpes
ae65d1be44 fix(qgsdaterange): consider infinite bounds in overlaps method
Infinite left or right date bound were not considered when computing
overlaps, leading to ranges being considered overlapping where they
don't.
2025-02-07 17:29:37 +01:00
David Koňařík
4d86676c35 Fix SIP build errors by using /NoTypeName/
The typedef is only present in the .sip file, but without this
annotation SIP assumes it also exists in QGIS headers. This didn't
completely break the build, since we concatenate multiple SIP headers
into larger files, so the typedefs from one part "fixed" another. Run
sip-build without --concatenate to see the issue clearly.

This fix is currently sadly not fully effective due to a SIP bug:
https://github.com/Python-SIP/sip/issues/66
2025-01-06 21:31:40 +01:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
be8dce7d0d Valid improvements from new sipify 2024-08-13 20:28:55 +10:00
Nyall Dawson
7fc4ed3999 Add range limits api to QgsRange 2024-03-16 13:11:54 +10:00
Nyall Dawson
7892bd855b Register QgsIntRange/QgsDoubleRange as metatypes 2024-03-09 06:57:53 +10:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
b7c1c3af4c Add method to merge a list of possibly non-contigous date/datetime ranges 2021-03-25 13:35:52 +10:00
Nyall Dawson
047e13eb22 Declare metatype for QgsDate/DateTimeRange 2021-03-25 08:01:51 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
928c969e82 More appropriate equality operator for QgsDoubleRange 2020-11-26 04:18:01 +10:00
Nyall Dawson
95fa338264 Add repr for QgsIntRange/QgsDoubleRange 2020-11-26 04:18:01 +10:00
Nyall Dawson
752746d494 Add equality operators for QgsRange 2020-11-26 04:18:01 +10:00
Nyall Dawson
5ae0453064 Add isInfinite function to QgsIntRange/QgsDoubleRange 2020-11-26 04:18:01 +10:00
Richard Duivenvoorde
34c035631f Implement != operator, update sip 2020-09-07 12:12:34 +02:00
Alessandro Pasotti
16676ff93a Code layout 2019-10-26 06:46:09 +10:00
Alessandro Pasotti
090a6c72ad Fix range extend infinity 2019-10-26 06:46:09 +10:00
Alessandro Pasotti
65d0f5b67f Add extend to QgsRange 2019-10-26 06:46:09 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00