mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-08 03:03:02 +02:00
Compare commits
No commits in common. "6c80d89c89951d3c53bc5804c8f048c541dc313b" and "792ede2a961465b476ed3e7203eec5ef942fd6ec" have entirely different histories.
6c80d89c89
...
792ede2a96
@ -541,7 +541,7 @@ void KMLParser::photoOverlay(const Ctx &ctx, QVector<Waypoint> &waypoints,
|
|||||||
Waypoint w;
|
Waypoint w;
|
||||||
QMap<QString, PolygonStyle> unused;
|
QMap<QString, PolygonStyle> unused;
|
||||||
QMap<QString, LineStyle> unused2;
|
QMap<QString, LineStyle> unused2;
|
||||||
static const QRegularExpression re("\\$\\[[^\\]]+\\]");
|
static QRegularExpression re("\\$\\[[^\\]]+\\]");
|
||||||
|
|
||||||
while (_reader.readNextStartElement()) {
|
while (_reader.readNextStartElement()) {
|
||||||
if (_reader.name() == QLatin1String("name"))
|
if (_reader.name() == QLatin1String("name"))
|
||||||
|
@ -141,7 +141,7 @@ int ISO8211::readDR(QVector<FieldDefinition> &fields)
|
|||||||
|
|
||||||
bool ISO8211::readDDA(const FieldDefinition &def, SubFields &fields)
|
bool ISO8211::readDDA(const FieldDefinition &def, SubFields &fields)
|
||||||
{
|
{
|
||||||
static const QRegularExpression re("(\\d*)(\\w+)\\(*(\\d*)\\)*");
|
static QRegularExpression re("(\\d*)(\\w+)\\(*(\\d*)\\)*");
|
||||||
QByteArray ba(def.size, Qt::Initialization::Uninitialized);
|
QByteArray ba(def.size, Qt::Initialization::Uninitialized);
|
||||||
bool repeat = false;
|
bool repeat = false;
|
||||||
QVector<SubFieldDefinition> defs;
|
QVector<SubFieldDefinition> defs;
|
||||||
|
@ -482,7 +482,6 @@ Style::Style(qreal ratio)
|
|||||||
_lightRed = QImage(":/marine/light-red.png");
|
_lightRed = QImage(":/marine/light-red.png");
|
||||||
_lightGreen = QImage(":/marine/light-green.png");
|
_lightGreen = QImage(":/marine/light-green.png");
|
||||||
_lightYellow = QImage(":/marine/light-yellow.png");
|
_lightYellow = QImage(":/marine/light-yellow.png");
|
||||||
_lightWhite = QImage(":/marine/light-white.png");
|
|
||||||
_lightOffset = QPoint(11, 11);
|
_lightOffset = QPoint(11, 11);
|
||||||
_signal = QImage(":/marine/fog-signal.png");
|
_signal = QImage(":/marine/fog-signal.png");
|
||||||
_signalOffset = QPoint(-9, 9);
|
_signalOffset = QPoint(-9, 9);
|
||||||
@ -542,7 +541,6 @@ const QImage *Style::light(Color color) const
|
|||||||
case Green:
|
case Green:
|
||||||
return &_lightGreen;
|
return &_lightGreen;
|
||||||
case White:
|
case White:
|
||||||
return &_lightWhite;
|
|
||||||
case Yellow:
|
case Yellow:
|
||||||
case Amber:
|
case Amber:
|
||||||
case Orange:
|
case Orange:
|
||||||
@ -560,7 +558,6 @@ QColor Style::color(Style::Color c)
|
|||||||
case Green:
|
case Green:
|
||||||
return Qt::green;
|
return Qt::green;
|
||||||
case White:
|
case White:
|
||||||
return Qt::white;
|
|
||||||
case Yellow:
|
case Yellow:
|
||||||
case Amber:
|
case Amber:
|
||||||
case Orange:
|
case Orange:
|
||||||
|
@ -121,7 +121,7 @@ private:
|
|||||||
|
|
||||||
/* Fonts and images must be initialized after QGuiApplication! */
|
/* Fonts and images must be initialized after QGuiApplication! */
|
||||||
QFont _small, _normal, _large;
|
QFont _small, _normal, _large;
|
||||||
QImage _light, _lightRed, _lightGreen, _lightYellow, _lightWhite, _signal;
|
QImage _light, _lightRed, _lightGreen, _lightYellow, _signal;
|
||||||
QPoint _lightOffset, _signalOffset;
|
QPoint _lightOffset, _signalOffset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user