1249 Commits

Author SHA1 Message Date
Nyall Dawson
77ede9ca61 Boost unit test coverage of paint effects 2015-04-09 06:56:34 +10:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Nyall Dawson
fcaf5600f2 Optimise some headers for compile speed 2015-04-07 19:27:44 +10:00
Anatoliy Golubev
6850ce6205 Fix QgsRubberBand visibility behavior
Visibility behavior stays the same as in QGIS 2.6
Test included
2015-04-02 14:47:57 +03:00
Anatoliy Golubev
f11fdb044e Don`t change current visibility flag of rubberband on updates 2015-04-01 13:33:52 +03:00
Sandro Santilli
a844bfa174 Recompute rubberband extent on zoom/pan
Fix #12392
Includes testcase
2015-04-01 12:25:30 +02:00
Nyall Dawson
8b37ea2b05 [FEATURE] Add option to symbology to prevent clipping of features
This option (located under the symbol advanced menu) disables the
automatic clipping of lines/polygons to the canvas extent. In
some cases this clipping results in unfavourable symbology (eg
centroid fills where the centroid must always be the actual
feature's centroid). (fix #9757)
2015-03-28 21:16:45 +11:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Matthias Kuhn
264c0ec32a Add unit tests for virtual fields 2015-03-27 14:12:03 +01:00
Chris Crook
60fcc4d876 Merge branch 'carolinux-5605-types' 2015-03-22 08:55:38 +13:00
Chris Crook
0beb1707b6 Adapting longlong test to general type inference test 2015-03-22 08:51:42 +13:00
Chris Crook
532599e491 Merge branch '5605-types' of git://github.com/carolinux/QGIS into carolinux-5605-types 2015-03-21 20:57:02 +13:00
Larry Shaffer
12e0f358a8 Set GDAL env vars for when gdal lib is bundled in app on Mac 2015-03-20 11:48:09 -06:00
Juergen E. Fischer
f17755cec4 indentation update 2015-03-19 22:58:11 +01:00
Nyall Dawson
5c14c21b1d Implement smoothing algorithm for geometries 2015-03-19 23:26:59 +11:00
carolinux
48591dffbb Added testcase for longs 2015-03-19 17:12:23 +08:00
Nyall Dawson
7882fe2f25 Add methods for comparison of QgsPoint, QgsPolyline and QgsPolygon
These methods allow for fuzzy comparison of coordinates with a
specified tolerance.
2015-03-19 19:48:57 +11:00
Nyall Dawson
a4d17c0e9b Ignore position of thousands seperators when editing scale combo box
... be more permissive about the conversion from string to number
after a value is entered in the combo box (fix #12385)
2015-03-17 18:56:53 +11:00
Nyall Dawson
cafc722d92 Add some GDAL provider unit tests...
(...doing penance for my 2.8 sins)
2015-03-10 22:54:13 +11:00
Juergen E. Fischer
1aff7335d0 fix arm build 2015-03-09 09:57:20 +01:00
Sandro Santilli
10d2ce4584 Add tests for rotated map
Thanks Nyall for initial template.

Include tests for raster layers, SVG and simple markers
with data-defined or fixed rotation, parallel line labels.
2015-02-20 11:30:11 +01:00
Martin Dobias
e38b13c5d0 Fix rule-based renderer's descendants() method.
This was causing unexpected changes to rule keys on 3rd level and deeper
2015-02-19 15:45:40 +07:00
Nyall Dawson
7f2fac15dc Add some more test mask images
Also some debugging info for tests failing on certain platforms.
2015-02-19 16:24:11 +11:00
Nyall Dawson
854c0b8bab Allow use of masks for unit test control images
Masks set which pixels in the control image should be tested and
an optional tolerance for each pixel. This is done via the colors
in the mask image - white pixels are ignored, black must be an
exact match, and gray levels represent the maximum color component
deviation for that pixel.

This should replace the fragile anomaly images, in that a single
control image with a suitable mask will not be susceptible to
antialiasing differences, etc.

A new script (scripts/generate_test_mask_image.py) is included which
either creates a new mask or modifies an existing mask to handle
an acceptable rendered image.

Ultimately, masking along with multi render checks for specific
platform differences should be flexible enough to meet our needs.
2015-02-19 07:23:57 +11:00
Juergen E. Fischer
fc22bf19b1 identation update 2015-02-18 08:37:00 +01:00
Nyall Dawson
b0657b0fbc Fix unchecked return values 2015-02-18 17:35:47 +11:00
Nyall Dawson
d4f509f7a2 Avoid some mixing enum types warnings 2015-02-18 17:35:47 +11:00
Nyall Dawson
2d8feebbde Some very minor Coverity related fixes 2015-02-16 16:11:57 +11:00
Nyall Dawson
da092bf054 Coverity fixes: uninitialised members 2015-02-16 16:11:57 +11:00
Jürgen Fischer
553abbdc01 Merge pull request #1900 from mhugo/fix_spatialite2
[spatialite] Bug fixes
2015-02-14 20:58:41 +01:00
Hugo Mercier
221ba9c336 [spatialite] Fix geometry column name case sensitivity 2015-02-13 15:14:04 +01:00
Nyall Dawson
e96b204b09 Fix failing pal labeling canvas test
Make sure image dpi respects mapsettings dpi in
QgsMapRendererSequentialJob.

Also apply a workaround to avoid segfault on end of test. This
workaround probably should be moved to QgsApplication::exitQgis()
but I'll do that after release in case of regressions.
2015-02-13 06:32:37 +11:00
Nyall Dawson
1a606358c0 "Fix" failing atlas composition tests
These failing tests are actually revealing an issue with the atlas
map API, which can't be fixed without a break.

This API will be replaced for QGIS3.0 or the layout refactor work.
2015-02-12 09:19:12 +11:00
Nyall Dawson
25652e4228 More Coverity fixes 2015-02-12 07:35:40 +11:00
Hugo Mercier
12a4e7dc8e Allow to load a query-based SQLite layer without geometry 2015-02-11 17:07:36 +01:00
Juergen E. Fischer
f76d7301a3 indentation update/fix (followup 9ab22bd) 2015-02-11 13:49:07 +01:00
Nyall Dawson
47488f280d Add unit test for API documentation coverage
This test checks that the coverage of the API docs does not drop
below a preset threshold (initially set at the current doc coverage)

If new members are added without documentation, then the coverage
will drop and this test will fail. Hopefully over time we can slowly
increase this threshold until documentation coverage reaches an
acceptable level.
2015-02-11 22:22:06 +11:00
Nyall Dawson
4e0431d88b Coverity fixes (unchecked dynamic_cast) 2015-02-11 17:12:44 +11:00
Nyall Dawson
868720b7e0 Coverity null dereference fixes 2015-02-11 16:03:04 +11:00
Nyall Dawson
c253a9f623 Uninitialized variable fixes 2015-02-10 22:23:01 +11:00
Nyall Dawson
db17513287 Fix some warnings, incorrect use of abs for double values 2015-02-10 18:54:49 +11:00
Martin Dobias
68f94647fd Fix #12165 - table can't be joined multiple times 2015-02-10 14:48:22 +07:00
Juergen E. Fischer
b67daf0336 new coverity fixes 2015-02-08 19:32:50 +01:00
Juergen E. Fischer
a264a27dfb fix windows build (pow called with an integer) and comma cosmetics 2015-02-08 13:15:42 +01:00
Juergen E. Fischer
6ed695aa73 remaining cppcheck issues 2015-02-07 23:14:09 +01:00
Juergen E. Fischer
0f9397028e fix more cppcheck issues 2015-02-07 18:40:42 +01:00
Sandro Santilli
a40eca4a34 Use core support for map rotation in composer
Includes patch by Martin Dobias
See http://lists.osgeo.org/pipermail/qgis-developer/2015-January/036309.html

Fix #11912
2015-02-07 15:34:30 +01:00
Sandro Santilli
1ccf558497 Add a new visiblePolygon method to QgsMapSettings
Centralizes code to return a possible rotated map area boundaries.
Makes use of the new method from the grid decoration.

Adds new testcase for QgsMapSettings, including test for visibleExtent,
mapUnitsPerPixel and the new visiblePolygon method.
2015-02-07 15:05:00 +01:00
Juergen E. Fischer
198d8fe58f fix warnings and extra semicolons 2015-02-07 13:54:46 +01:00
Juergen E. Fischer
76b0bcfce0 again more coverity fixes 2015-02-07 09:54:11 +01:00