1119 Commits

Author SHA1 Message Date
Matthias Kuhn
256b2652c3 Fix some warnings 2014-11-19 09:28:57 +01:00
Nyall Dawson
52159851bf [FEATURE] Raster image symbol fill type
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Matthias Kuhn
7d7ac62f67 Add tolerance to shapeburst test
Fixes it on ubuntu trusty
2014-11-18 11:08:28 +01:00
Matthias Kuhn
581815f841 Fix atlas tests
* Recreates composition for every test and therefore removes internal
   dependency
 * Reorders method calls to make the test pass
 * Disable the test until https://github.com/qgis/QGIS/pull/1688
2014-11-14 19:14:51 +01:00
Matthias Kuhn
f0efa6d8f4 Disable geometry simplify check
This test mixes different effects and is very unprecise in what it tests and
what it expects as result.
2014-11-14 18:30:30 +01:00
Matthias Kuhn
fd95930194 Switch QgsCompositionChecker to MultiRenderChecker 2014-11-14 18:30:29 +01:00
Nyall Dawson
31c32505bb Switch to RGB32 images for composition checker 2014-11-14 18:30:29 +01:00
Nyall Dawson
2cfcca10d2 Use a non-transparent background for composition checker
Fix composerhtml tests on precise
2014-11-14 18:30:28 +01:00
Matthias Kuhn
eaf0d34587 Cleanup atlas composition tests
* Don't try to cache on 0-sized image
 * Use qDebug instead of qWarning
2014-11-14 18:30:28 +01:00
Matthias Kuhn
81d3871048 Fix shapeburst test
Move to multirenderchecker
2014-11-14 18:30:28 +01:00
Matthias Kuhn
416f471e6d [unit tests] Make qgis_rendererstest pass
Replace control image
2014-11-14 18:30:28 +01:00
Matthias Kuhn
ab5e0e2b37 Fix PalLabelingComposer test
Switch to QgsMultiRenderChecker and add control images for Ubuntu precise where
required.
2014-11-14 18:30:27 +01:00
Matthias Kuhn
58932890b3 Fix inverted polygon renderer test 2014-11-14 18:30:27 +01:00
Matthias Kuhn
9d9f7c18aa [unit tests] Fix blend modes test
* Switched to QgsMultiRenderChecker and added control images for precise
 * Add a minimal color tolerance for slight render inconsistencies
2014-11-14 18:30:27 +01:00
Matthias Kuhn
9ae9de3e7f Compositionchecker: Default color tolerance of 1 2014-11-14 18:30:27 +01:00
Matthias Kuhn
b28dcb9cbc [unit tests] Add multirenderchecker
The multirenderchecker allows to have several images, each with its own set of
anomalies distributed in several subdirectories.
With the help of multiple reference images, it is possible to apply a color
tolerance to each of these
2014-11-14 18:30:27 +01:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Juergen E. Fischer
47121fb618 fix PyQgsAppStartup test on windows 2014-11-12 22:15:05 +01:00
Juergen E. Fischer
c18cb33ae6 fix PyQgsLogger test (fixes b5f6d2ce, but also the failure on windows) 2014-11-12 20:45:20 +01:00
Matthias Kuhn
f1fb5fb192 Fix qgis_legendrenderertest
Changed control image that fails on every platform
2014-11-12 15:43:49 +01:00
Matthias Kuhn
ef5955a714 Fix maprenderertest
By introducing some color tolerance
2014-11-11 08:41:39 +01:00
Matthias Kuhn
95f880a570 Fix occasional crash on exit because of statis network access manager
see https://bugreports.qt-project.org/browse/QTBUG-25789
2014-11-08 15:24:09 +01:00
Matthias Kuhn
9b01b2eab1 Fix dual view test
* References commit 51e01d6
* And issue #11529
2014-11-08 09:50:06 +01:00
Matthias Kuhn
1871a4c081 Fix expression test
make sure the style file with the color ramp can be copied to the settings path
2014-11-08 09:34:58 +01:00
Nyall Dawson
8b29097f36 [FEATURE][composer] Vertical descending direction for annotations
This change adds a new descending vertical direction mode for
map grid annotations. Previously only ascending text was
supported for vertical annotations.
2014-11-07 10:31:59 +11:00
Nyall Dawson
b2423241ff [composer] Use intersection rather than clip for transformed grids
Previous behaviour was to clip transformed grid lines to the visible
map extent. This caused problems if a map item had no border (a
solid line would be shown along the map extent), and also meant
that reprojected lines which crossed out of the map extent and back
in again did not have annotations or grid frame markings shown.

Also implement an improved logic for detecting the map frame side
for annotations.
2014-11-07 09:53:19 +11:00
Nyall Dawson
878230a1db Add methods to QgsGeometry to convert to/from QPointF and QPolygonF 2014-11-06 17:29:15 +11:00
Nyall Dawson
b5c9df0e61 Add methods for converting QgsPoint to and from QPointF and QPoint
Also add some more basic unit tests for QgsPoint
2014-11-06 17:29:05 +11:00
Matthias Kuhn
38e13e0e40 Fix app startup test 2014-11-04 23:04:03 +01:00
Matthias Kuhn
1c2bdf1ea3 Switch tests to automoc
Required for Qt5 compatibility
Raises minimum CMake version to 2.8.6
2014-11-04 09:18:26 +01:00
Nyall Dawson
ac9220d35b [FEATURE][composer] Finer control of frame and annotation display
Previously, for rotated maps or reprojected grids, the composer would
draw all coordinates for every map side. This resulted in a mix of
latitude/y and longitude/x coordinates showing on a side. This change
allows users to control whether they want all coordinates, latitude
only or longitude only for each map frame side. Similar options have
also been added for controlling how a map grid frame is divided.

In related news... the composer map dialog is now the ugliest,
most cluttered and un-user friendly dialog in all of QGIS. I'd
love suggestions/mockups from the UX team for ways this could
be improved.
2014-11-04 13:17:44 +11:00
Nyall Dawson
a2a094bd02 [FEATURE][composer] Allow control of hoz and vert margins for labels
Previously only a single margin setting would apply to both
horizontal and vertical margins. This change allows users to specify
different horizontal and vertical margins.
2014-11-01 06:38:51 +11:00
Sandro Santilli
f831475f64 Drop execute flag from .cpp file 2014-10-29 11:30:40 +01:00
Nyall Dawson
d2c9ffd869 [composer] Fix incorrect calculation of scale for tick scale bars
QPainter::drawLine(x1,y1,x2,y2) takes int values, so coordinates
were being rounded to the nearest mm. Consequently scale was way
off. Also fixes horizontal line for tick styles being drawn
incorrectly with multiple overlapping segments. (fix #10685)
2014-10-27 21:14:11 +11:00
Juergen E. Fischer
d833c22b46 fix interpretation of numeric constants in scientic notation (fixes #10939) 2014-10-23 00:07:48 +02:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Juergen E. Fischer
8d3654baa7 indentation update 2014-10-20 00:16:36 +02:00
Chris Crook
422ea56f5b Merge pull request #1630 from ccrook/GraduatedRendererUnitTests2
Graduated renderer unit tests2
2014-10-19 19:37:38 +13:00
Nyall Dawson
64f0fdf371 Expand composer item group test suite 2014-10-19 14:45:19 +11:00
Nyall Dawson
0f4bd4e0fc [composer] Move ungrouping logic from composer view to composition
As per previous commit, this is useful for plugin authors. It also
fixes a potential bad crash (itemRemoved emitted for group item after
the group item was already deleted) and adds unit tests.
2014-10-19 14:45:19 +11:00
Nyall Dawson
993f0dcd3d [composer] Move code for creating groups to QgsComposition
Previously this code was located in QgsComposerView. Moving it to
QgsComposition simplifies grouping items for plugins. Also start
a new unit test for QgsComposerItemGroup.
2014-10-19 14:45:19 +11:00
Chris Crook
481067f8e2 Further unit tests 2014-10-16 19:54:04 +13:00
Chris Crook
43aaaf6bf8 Adding python unit tests for graduated renderer - part 1 2014-10-16 19:47:55 +13:00
Nyall Dawson
4ea5c80948 [composer] Avoid crash when using redo on multiframe (fix #11351)
Since multiframe changes can remove and create new frame items,
it's not safe to directly manipulate frame items in
QgsComposerItemCommand. Now, commands which apply to a frame always
fetch a reference to the correct frame item directly from the
parent multiframe. Also added unit tests for this crash.
2014-10-15 20:17:10 +11:00
Nyall Dawson
1cb22c084d [composer] Seperate draw empty rows option from empty table behaviour
Now "draw empty rows" is a seperate checkbox (fix #11392)
2014-10-14 21:25:12 +11:00
Nyall Dawson
ac71e600a2 Cancel running requests when loading content in QgsNetworkContentFetcher (fix #11332) 2014-10-09 22:56:54 +11:00
Nyall Dawson
a5b5bd4c45 [composer] Fix new frames not inheriting outline color, clean up item api a bit 2014-10-09 19:56:59 +11:00
Nyall Dawson
b3f00ec3db Add some tolerance to atlas tests 2014-10-08 20:29:48 +11:00
Nyall Dawson
6bb045bdbb [composer] Ensure that QgsComposerMap::mapPolygon returns a closed
polygon, fixes rare crash when using map overviews (fix #11305)
2014-10-08 19:37:14 +11:00
Nyall Dawson
211061124f Use standard test font for QgsComposerHtml test 2014-10-06 22:14:15 +11:00