Nyall Dawson
fa21311e4c
More robust test for numeric scale bar
2017-04-26 11:46:51 +10:00
Nyall Dawson
b40bc0c1f7
Refactor scale bar rendering
...
Move all scalebar rendering code out of composer and ensure that
all scalebar rendering is done independant of QgsComposerScaleBar
This allows scalebar rendering code to be reused by plugins
and by non-composer code.
Also rename QgsScaleBarStyle -> QgsScaleBarRenderer, (and all
subclasses too). This name better reflects what these classes do.
2017-04-26 11:46:51 +10:00
Juergen E. Fischer
b9162dccdf
scripts/astyle-all.sh run
2017-03-03 15:37:12 +01:00
Nyall Dawson
d19e70700f
Ensure all pointer variables are initialized to nullptr
2017-02-18 20:23:18 +10:00
Nyall Dawson
a188d14f48
Remove map settings parameter from QgsComposition
...
Breaks the hard link between canvas and compositions!
Fix #11077
2017-01-24 14:32:08 +10:00
Nyall Dawson
f0f01709bc
Fix failing test
2017-01-23 12:45:22 +10:00
Nyall Dawson
17d4d3a8a4
Fix some failing tests
2017-01-23 12:45:22 +10:00
Nyall Dawson
ffaa40edc4
Refactor properties
...
Remove QgsAbstractProperty and subclasses, and instead use a single
QgsProperty class which covers the use of QgsAbstractProperty
and its subclasses. This simplifies the API and avoids pointer
handling. QgsProperty is implicitly shared for memory efficiency
and inexpensive copies.
2017-01-23 12:45:21 +10:00
Nyall Dawson
6c53ba25e3
[FEATURE][composer] Data defined scalebar colors and line width
2017-01-23 12:45:21 +10:00
Nyall Dawson
6a4d605256
Fix some test failures
2017-01-18 07:38:06 +10:00
Martin Dobias
8c340f7144
Make composition associated with QgsProject ( #3957 )
...
... rather than using project singleton within compositions
2017-01-06 17:22:34 +08:00
Matthias Kuhn
dfd9833467
Let all tests work with a proper QgsApplication instance
2016-12-20 01:20:08 +01:00
Martin Dobias
483c7f4b86
Test fixes and further QgsProject::instance() removals
2016-12-11 00:31:27 +08:00
Martin Dobias
c143be7a73
QgsMapSettings and QgsComposerMap store layers for rendering as weak pointers
...
... instead of using layer IDs which need to be resolved using QgsProject
2016-12-10 18:50:52 +08:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Nyall Dawson
4166a3ea62
Fix most clazy qstring-unneeded-heap-allocations warnings
...
By flipping string literals to QStringLiteral/QLatin1String
see
https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
4589a807d0
Followup ecee438
2016-10-18 12:38:31 +10:00
Martin Dobias
ab4a83b49b
Goodbye to QgsMapRenderer ( #3333 )
...
For the time being the class is kept in the server code while it is still being used there.
2016-07-24 22:40:52 +02:00
Nyall Dawson
c628c0f434
Rework includes to forward declare as much as possible
...
Should speed up recompilation when headers change
2016-07-18 19:10:19 +10:00
Nyall Dawson
eb31e01a2f
Move QgsCompositionChecker to core, speeds up compilation with
...
tests enabled
2016-03-07 09:38:36 +11:00
Martin Dobias
215ba22597
Fix failing composer scale bar test on less common locales
2016-01-04 23:46:08 +01:00
Nyall Dawson
4ea0c56e9b
Followup 53b116a, fix failing tests
2015-12-01 08:18:51 +11:00
Nyall Dawson
0c5475545f
Cleanup control_images folder by grouping some tests in subfolders
2015-08-30 20:15:25 +10:00
Juergen E. Fischer
83bb33cad5
cleanup composer test map settings
2015-07-05 11:20:13 +02:00
Juergen E. Fischer
9b976cfe26
test cleanups and some fixes
2015-07-02 04:22:52 +02:00
Juergen E. Fischer
d429f195b6
Some fixes to the tests on windows:
...
* defer initialization of map settings until after QgsApplication is initialized
* disable local server test
* set ogr encoding in qgsserver testproject.qgs
2015-07-01 18:09:30 +02:00
Denis Rouzaud
9e3183c63f
Revert "sort includes"
...
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73
sort includes
2015-06-10 13:59:08 +02:00
Juergen E. Fischer
0f9397028e
fix more cppcheck issues
2015-02-07 18:40:42 +01:00
Juergen E. Fischer
bff64fdef9
indentation update
2014-12-30 22:47:09 +01:00
Matthias Kuhn
cae6baea90
Formatting of tests
2014-11-21 11:45:33 +01:00
Matthias Kuhn
95f6483855
Fix some race condition segfaults of tests on exit
2014-11-21 11:45:32 +01:00
Matthias Kuhn
78c519546a
Add Qt5 support
2014-11-21 11:45:32 +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
3af68f4888
Rebuild composer test images at 96 dpi to speed up unit tests
2014-09-21 19:47:39 +10:00
Nyall Dawson
09645e4ecc
[FEATURE][composer] Allow setting secondary color for scalebars, allow alpha channels in scalebar colors
2014-06-28 08:46:44 +10:00
Nyall Dawson
0b32f2ac38
[tests] Fix composer tests. Rebuild images following MTR rendering changes. Switch tests to use standard test font.
2014-04-03 22:56:34 +11:00
Martin Dobias
a3af93394e
Merge branch 'master' into threading-revival
...
Some features are still disabled - will be fixed later
Conflicts:
python/core/composer/qgscomposition.sip
python/core/diagram/qgsdiagram.sip
python/core/diagram/qgshistogramdiagram.sip
python/core/diagram/qgspiediagram.sip
python/core/diagram/qgstextdiagram.sip
python/core/qgsdiagramrendererv2.sip
python/core/qgsfield.sip
python/core/qgslabelsearchtree.sip
python/core/qgsmaprenderer.sip
python/core/qgsrenderchecker.sip
python/core/symbology-ng/qgssymbollayerv2.sip
python/gui/qgsmapcanvas.sip
src/app/composer/qgscomposerlegendwidget.cpp
src/app/qgisapp.cpp
src/core/composer/qgsatlascomposition.cpp
src/core/composer/qgscomposerattributetable.cpp
src/core/composer/qgscomposermap.cpp
src/core/composer/qgscomposition.cpp
src/core/composer/qgscomposition.h
src/core/diagram/qgsdiagram.h
src/core/diagram/qgshistogramdiagram.cpp
src/core/diagram/qgshistogramdiagram.h
src/core/diagram/qgspiediagram.cpp
src/core/diagram/qgspiediagram.h
src/core/diagram/qgstextdiagram.cpp
src/core/diagram/qgstextdiagram.h
src/core/qgsdiagramrendererv2.cpp
src/core/qgsdiagramrendererv2.h
src/core/qgsmaprenderer.cpp
src/core/qgsmaprenderer.h
src/core/qgsnetworkaccessmanager.h
src/core/qgspallabeling.cpp
src/core/qgsrenderchecker.h
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerfeatureiterator.cpp
src/core/qgsvectorlayerfeatureiterator.h
src/core/raster/qgsrasterlayer.cpp
src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
src/core/symbology-ng/qgssymbollayerv2.cpp
src/core/symbology-ng/qgssymbollayerv2.h
src/core/symbology-ng/qgssymbolv2.cpp
src/gui/qgshighlight.cpp
src/gui/qgsmapcanvas.cpp
src/gui/qgsmapcanvas.h
src/gui/qgsmapcanvasitem.cpp
src/gui/qgsmaptoolidentify.cpp
src/plugins/georeferencer/qgsgeorefplugingui.cpp
src/providers/memory/qgsmemoryfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.h
src/providers/ogr/qgsogrprovider.cpp
src/providers/oracle/qgsoraclefeatureiterator.cpp
src/providers/oracle/qgsoracleprovider.cpp
src/providers/postgres/qgspostgresconn.cpp
src/providers/postgres/qgspostgresfeatureiterator.cpp
src/providers/postgres/qgspostgresfeatureiterator.h
src/providers/wfs/qgswfsfeatureiterator.cpp
src/providers/wms/qgswmsprovider.cpp
src/providers/wms/qgswmsprovider.h
src/ui/qgsoptionsbase.ui
tests/src/core/CMakeLists.txt
tests/src/core/testqgscomposereffects.cpp
tests/src/core/testqgscomposerhtml.cpp
tests/src/core/testqgscomposerscalebar.cpp
tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Martin Dobias
630272d280
Conversion of composer to use map renderer job
2013-11-13 10:08:27 +07:00
Juergen E. Fischer
4b6bc3d045
test fixes:
...
* use compareWkt in PyGeometry nad PyQgsRectangle
* skip PySpatialiteProvider if pyspatialite is unavailable
* show information about used fonts
2013-07-21 10:19:06 +02:00
nyalldawson
cfd9a669c8
[tests] Update composer scalebar tests, fix exception causing test to fail
2013-12-29 09:52:15 +11:00
Marco Hugentobler
0d4b6f6d32
Fix composer scalebar test
2012-10-06 15:22:19 +02:00
Juergen E. Fischer
5603cc0bd2
indentation update
2012-09-07 01:54:52 +02:00
Marco Hugentobler
6028b81191
Improve scalebar default settings
2012-08-31 17:05:12 +02:00
Marco Hugentobler
1ddcf94ba4
Add test and control images for composer scalebar test
2012-08-31 15:56:31 +02:00