Alessandro Pasotti
90f873086c
Attach QgsSourceSelectProviderRegistry to QgsGui
...
And make it a singleton
2017-09-04 08:00:14 +02:00
Nyall Dawson
700f9b2ef8
Condense qgstestutils.h and qgstest.h into a single file
2017-09-04 10:38:18 +10:00
Nyall Dawson
2286710606
Skip some task manager tests on Travis only
...
Instead of #ifdefing them out, only prevent them running
on Travis so that they still run locally.
Also skip another task manager test which randomly
fails only on Travis
2017-09-04 10:32:08 +10:00
Nyall Dawson
26830949d9
Add a QgsLocatorModel subclass which automatically sets up
...
required connections to a QgsLocator
Use this QgsLocatorModel subclass when you want the connections
between a QgsLocator and the model to be automatically created
for you. If more flexibility in model behavior is required,
use the base QgsLocatorModel class instead and setup the
connections manually.
2017-09-03 16:35:51 +10:00
Nyall Dawson
a8e1d335bb
Move locator non-gui classes to core
...
Allows reuse in projects which don't build QGIS gui, e.g.
QField
2017-09-03 16:15:20 +10:00
Jorge Gustavo Rocha
e681547c1f
remove unnecessary test
2017-09-03 00:44:25 +01:00
Jorge Gustavo Rocha
aa4213f715
remove unwanted files
2017-09-03 00:15:09 +01:00
Jorge Gustavo Rocha
a82dd5bbf3
Merge remote-tracking branch 'origin/add-default-layers' into add-default-layers
2017-09-02 23:43:39 +01:00
Jorge Gustavo Rocha
dc50a3e644
settings.globalChildGroups() test moved to test_qgssettings.py
2017-09-02 23:43:17 +01:00
Jorge Gustavo Rocha
390a34f5ec
settings.globalChildGroups() test moved to test_qgssettings.py
2017-09-02 23:24:38 +01:00
lbartoletti
e30f7044c9
[FEATURE][Processing] Minimal enclosing circle
2017-09-03 07:37:53 +10:00
Alessandro Pasotti
4c46f64647
Add QgsSourceSelectProviderRegistry with tests
2017-09-01 17:47:55 +02:00
Alessandro Pasotti
cd1c9b1e28
Add class QgsSourceSelectProvider and tests
...
This is the first step for QEP 101
2017-09-01 14:30:34 +02:00
Jorge Gustavo Rocha
7af72f78d0
Improve test: assert → assertTrue
2017-09-01 09:34:27 +01:00
Jorge Gustavo Rocha
ce01bc0b36
Include settings.globalChildGroups in test
...
Fix container iteration
2017-09-01 09:20:49 +01:00
Nyall Dawson
e68835f12e
Fix some possible leaks in tests
2017-09-01 08:00:59 +10:00
Nyall Dawson
0a9e9944b4
[FEATURE] Expression function for hausdorff distance
...
Allows calculation of the Hausdorff distance between two
geometries
2017-08-31 08:02:44 +10:00
Nyall Dawson
d8607222e0
Expose GEOS Hausdorff distance calculations to QgsGeometry
2017-08-31 08:02:44 +10:00
Nyall Dawson
184899ec30
Port remaining plotly based algs to new API
2017-08-30 07:28:25 +10:00
Nyall Dawson
e4c1e1b905
Ignore Q_ENUM in doxygen test
2017-08-29 20:09:54 +10:00
Nyall Dawson
78b834c5b0
Fix missing Q_OBJECT macros
...
Thanks to Clazy
2017-08-29 18:03:41 +10:00
Nyall Dawson
1fddfcf622
Flip Q_ENUMS to Q_ENUM
...
See https://woboq.com/blog/q_enum.html for rationale
2017-08-29 18:03:41 +10:00
Nyall Dawson
9b2e60ee1b
Remove use of old CMP0005 CMake policy
...
Since it's deprecated on newer CMake versions
2017-08-29 13:37:06 +10:00
Nyall Dawson
21a3b8a4f3
Use QGSCOMPARENEAR instead of QVERIFY( qgsDoubleNear(... ) )
...
QGSCOMPARENEAR gives better debugging output when the
test fails
2017-08-29 12:39:59 +10:00
Nyall Dawson
2af10cb2ca
Fix C4566 warning on Windows build
2017-08-29 12:11:07 +10:00
Nyall Dawson
029f741cfa
Add qgsAsConst(...)
...
This is the equivalent of std::as_const (which requires c++17) or
qAsConst (which requires Qt 5.7), neither of which we have
as minimum dependancies.
By wrapping implicitly shared Qt containers in qgsAsConst we can
safely use c++ for ranged loops instead of Q_FOREACH. (Since
Q_FOREACH's future is shaky)
See https://www.kdab.com/goodbye-q_foreach/ for further details
on why for causes a detach for Qt containers and why Q_FOREACH
is being removed from Qt.
2017-08-29 03:18:37 +10:00
Blottiere Paul
64aa40510d
Update tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
927dea3c18
Add tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
d4789db19a
Fix tests
2017-08-28 14:09:56 +01:00
Blottiere Paul
4be1cc0067
Add tests for deleteCascade option
2017-08-28 14:09:56 +01:00
Blottiere Paul
cf5ab4b0f1
Add tests for upsertOnEdit option
2017-08-28 14:09:55 +01:00
Blottiere Paul
b8a90ca458
Add tests
2017-08-28 14:09:55 +01:00
Sandro Santilli
650cf6a3fd
Remove line segmentation test checking for control point containement
...
There are more tests in dedicated file (testqgscurve.cpp)
2017-08-25 23:06:52 +02:00
Sandro Santilli
5186c385c4
Expect centroid obtained by not forcing inclusion of control point
2017-08-25 23:06:52 +02:00
Sandro Santilli
c51db212ee
Do not expect forced control point in output
2017-08-25 23:06:52 +02:00
Sandro Santilli
8363d2f3d0
Update expected centroid, interpolated angle and located point for reference curves
...
These values change because they are computed on the *linearization*
of those curves, and refactoring linearization codes results in
slighly different values.
NOTE: adding or not adding the control point would also affect these
results
2017-08-25 23:06:52 +02:00
Sandro Santilli
cf5a439feb
Update expected results now that we're forcing control point in output
2017-08-25 23:06:52 +02:00
Sandro Santilli
320c305d92
Fix build and multi-arc duplicated points
2017-08-25 23:06:52 +02:00
Sandro Santilli
48c953991e
Refactor curveToLine to emit equidistant segments and fix some issues
...
Fixes #16717
Fixes #16722
Include tests
2017-08-25 23:06:52 +02:00
Nyall Dawson
07a570fd05
Merge pull request #5069 from nyalldawson/std
...
Swap use of some q* macros to std calls
2017-08-26 03:58:40 +10:00
Nyall Dawson
d3854e9e5a
Remove use of some other q* functions which are implemented in std
2017-08-25 03:33:50 +10:00
Nyall Dawson
b5ca4b4ea8
(q)sqrt -> std::sqrt
2017-08-25 03:22:15 +10:00
Nyall Dawson
fec03ca423
(q)sin -> std::sin
2017-08-25 03:18:05 +10:00
Nyall Dawson
2e5d1abbb1
(q)cos -> std::cos
2017-08-25 03:05:22 +10:00
Nyall Dawson
7c5aa050d1
(q)ceil -> std::ceil
2017-08-25 03:01:48 +10:00
Nyall Dawson
031bf41d1b
Swap q(pow) -> std::pow
2017-08-25 02:53:39 +10:00
Nyall Dawson
77c3be97e3
Make sure (f)abs are prefixed with std::
2017-08-25 02:35:28 +10:00
Nyall Dawson
f2b2c6d2fd
Use fabs/abs/labs instead of qAbs
...
Better to stick to standard methods where available instead
of less supported Qt methods
2017-08-25 02:35:27 +10:00
Nyall Dawson
4b009f96ec
Use std::round instead of qRound
...
Now that our minimum VS studio version allowed supports std::round,
we should use that in place of Qt's qRound method.
Because:
- it doesn't truncate to int, resulting in unpredictable
behaviour (refs #16925 )
- better to stick to standard c++ methods wherever possible,
since they're likely better supported and optimised by the
compilers
- it's a tiny reduction to the barrier for entry to QGIS
development (I'm sick of pointing out the need to use
qRound during PR reviews!)
2017-08-25 02:35:27 +10:00
rldhont
0dbf432cbc
Merge pull request #5044 from pblottiere/server_bugfix_ogc_getcapa_styles
...
[server][bugfix] Fixes OGC test on legendurl styles
2017-08-24 09:54:47 +02:00