mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
move new composer tests to pyqt wrappers (followup 7a8a541 and f413046)
This commit is contained in:
parent
aef26c90f3
commit
4f6c271490
@ -6,7 +6,7 @@ class FixPrintWithImport(FixPrintWithImportOrig):
|
||||
|
||||
def match(self, node):
|
||||
isPrint = super(FixPrintWithImport, self).match(node)
|
||||
if isPrint and
|
||||
if isPrint and \
|
||||
len(node.children) == 2 and \
|
||||
isinstance(node.children[0], Leaf) and \
|
||||
isinstance(node.children[1], Node) and node.children[1].type == syms.atom and \
|
||||
|
@ -14,9 +14,9 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
import qgis
|
||||
|
||||
from PyQt4.QtGui import QColor
|
||||
from PyQt4.QtGui import QPolygonF
|
||||
from PyQt4.QtCore import QPointF
|
||||
from PyQt.QtGui import QColor
|
||||
from PyQt.QtGui import QPolygonF
|
||||
from PyQt.QtCore import QPointF
|
||||
|
||||
from qgis.core import (QgsComposerPolygon,
|
||||
QgsComposerItem,
|
||||
|
@ -14,9 +14,9 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
import qgis
|
||||
|
||||
from PyQt4.QtGui import QColor
|
||||
from PyQt4.QtGui import QPolygonF
|
||||
from PyQt4.QtCore import QPointF
|
||||
from PyQt.QtGui import QColor
|
||||
from PyQt.QtGui import QPolygonF
|
||||
from PyQt.QtCore import QPointF
|
||||
|
||||
from qgis.core import (QgsComposerPolyline,
|
||||
QgsComposerItem,
|
||||
|
Loading…
x
Reference in New Issue
Block a user