6 class InvalidMap
: public Map
11 InvalidMap(const QString
&fileName
, const QString
&error
, QObject
*parent
= 0)
12 : Map(fileName
, parent
), _errorString(error
) {}
14 QString
name() const {return QString();}
16 QRectF
bounds() {return QRectF();}
18 QPointF
ll2xy(const Coordinates
&) {return QPointF();}
19 Coordinates
xy2ll(const QPointF
&) {return Coordinates();}
21 void draw(QPainter
*, const QRectF
&, Flags
) {}
23 bool isValid() const {return false;}
24 bool isReady() const {return false;}
25 QString
errorString() const {return _errorString
;}
31 #endif // INVALIDMAP_H