qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Remove QObject from QgsCoordinateTransform #46

Closed nyalldawson closed 8 years ago

nyalldawson commented 8 years ago

QgsCoordinateTransform is implemented as a QObject subclass, but there's no good reason for this now. Nothing connects to the signals emitted by QgsCoordinateTransform and the slots are always called directly.

The QObject inheritance should be removed to simplify copy and assignment of QgsCoordinateTransform objects. This would also allow removal of the 'clone' method, avoiding the need for storing QgsCoordinateTransform as pointers.

nyalldawson commented 8 years ago

Done in https://github.com/qgis/QGIS/commit/736aab195f91105bd30f1ce7ccb4f57b74041225