[Marble-bugs] [marble] [Bug 329407] New: Marble.GeoPainter does not overload drawLine(Marble.GeoDataCoordinates, Marble.GeoDataCoordinates)

Benjamin Kaiser benjaminjkaiser at gmail.com
Mon Dec 30 10:04:30 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=329407

            Bug ID: 329407
           Summary: Marble.GeoPainter does not overload
                    drawLine(Marble.GeoDataCoordinates,
                    Marble.GeoDataCoordinates)
    Classification: Unclassified
           Product: marble
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: benjaminjkaiser at gmail.com

When running the following python program:

http://pastebin.kde.org/pxydocavb

line 50 (drawEllipse(Marble.GeoDataCoordinates, float, float) works fine, but
line 54 does not. According to the documentation
(http://api.kde.org/pykde-4.7-api/marble/Marble.GeoPainter.html#drawLine)
GeoPainter should contain a drawLine(Marble.GeoDataCoordinates,
Marble.GeoDataCoordinates) however the following warning is thrown when trying
to execute the program:

Traceback (most recent call last):
  File "layers_drawline.py", line 54, in render
    painter.drawLine(home, home)
TypeError: arguments did not match any overloaded call:
  QPainter.drawLine(QLineF): argument 1 has unexpected type
'GeoDataCoordinates'
  QPainter.drawLine(QLine): argument 1 has unexpected type 'GeoDataCoordinates'
  QPainter.drawLine(int, int, int, int): argument 1 has unexpected type
'GeoDataCoordinates'
  QPainter.drawLine(QPoint, QPoint): argument 1 has unexpected type
'GeoDataCoordinates'
  QPainter.drawLine(QPointF, QPointF): argument 1 has unexpected type
'GeoDataCoordinates'


The only reason I suspect this is the problem is that the drawEllipse works
perfectly fine with the GeoDataCoordinates (suggesting it is in-fact a
Marble.GeoPainter)


Reproducible: Always




This bug is related to the Marble Python bindings

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list