mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-11 03:29:09 +01:00
Code cleanup
This commit is contained in:
parent
1586a5e912
commit
7e6ed0933c
@ -863,17 +863,17 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>RouteItem</name>
|
<name>RouteItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/routeitem.cpp" line="15"/>
|
<location filename="../src/routeitem.cpp" line="14"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>Název</translation>
|
<translation>Název</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/routeitem.cpp" line="17"/>
|
<location filename="../src/routeitem.cpp" line="16"/>
|
||||||
<source>Description</source>
|
<source>Description</source>
|
||||||
<translation>Popis</translation>
|
<translation>Popis</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/routeitem.cpp" line="18"/>
|
<location filename="../src/routeitem.cpp" line="17"/>
|
||||||
<source>Distance</source>
|
<source>Distance</source>
|
||||||
<translation>Vzdálenost</translation>
|
<translation>Vzdálenost</translation>
|
||||||
</message>
|
</message>
|
||||||
@ -967,27 +967,27 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>TrackItem</name>
|
<name>TrackItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/trackitem.cpp" line="14"/>
|
<location filename="../src/trackitem.cpp" line="13"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>Název</translation>
|
<translation>Název</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/trackitem.cpp" line="16"/>
|
<location filename="../src/trackitem.cpp" line="15"/>
|
||||||
<source>Description</source>
|
<source>Description</source>
|
||||||
<translation>Popis</translation>
|
<translation>Popis</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/trackitem.cpp" line="17"/>
|
<location filename="../src/trackitem.cpp" line="16"/>
|
||||||
<source>Distance</source>
|
<source>Distance</source>
|
||||||
<translation>Vzdálenost</translation>
|
<translation>Vzdálenost</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/trackitem.cpp" line="20"/>
|
<location filename="../src/trackitem.cpp" line="18"/>
|
||||||
<source>Time</source>
|
<source>Time</source>
|
||||||
<translation>Čas</translation>
|
<translation>Čas</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/trackitem.cpp" line="23"/>
|
<location filename="../src/trackitem.cpp" line="20"/>
|
||||||
<source>Date</source>
|
<source>Date</source>
|
||||||
<translation>Datum</translation>
|
<translation>Datum</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#include <QApplication>
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
#include "waypoint.h"
|
#include "waypoint.h"
|
||||||
@ -12,11 +11,10 @@ QString RouteItem::toolTip()
|
|||||||
ToolTip tt;
|
ToolTip tt;
|
||||||
|
|
||||||
if (!_name.isEmpty())
|
if (!_name.isEmpty())
|
||||||
tt.insert(qApp->translate("RouteItem", "Name"), _name);
|
tt.insert(tr("Name"), _name);
|
||||||
if (!_desc.isEmpty())
|
if (!_desc.isEmpty())
|
||||||
tt.insert(qApp->translate("RouteItem", "Description"), _desc);
|
tt.insert(tr("Description"), _desc);
|
||||||
tt.insert(qApp->translate("RouteItem", "Distance"),
|
tt.insert(tr("Distance"), Format::distance(_distance.last(), _units));
|
||||||
Format::distance(_distance.last(), _units));
|
|
||||||
|
|
||||||
return tt.toString();
|
return tt.toString();
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#include <QApplication>
|
|
||||||
#include <QCursor>
|
#include <QCursor>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
@ -11,17 +10,14 @@ QString TrackItem::toolTip()
|
|||||||
ToolTip tt;
|
ToolTip tt;
|
||||||
|
|
||||||
if (!_name.isEmpty())
|
if (!_name.isEmpty())
|
||||||
tt.insert(qApp->translate("TrackItem", "Name"), _name);
|
tt.insert(tr("Name"), _name);
|
||||||
if (!_desc.isEmpty())
|
if (!_desc.isEmpty())
|
||||||
tt.insert(qApp->translate("TrackItem", "Description"), _desc);
|
tt.insert(tr("Description"), _desc);
|
||||||
tt.insert(qApp->translate("TrackItem", "Distance"),
|
tt.insert(tr("Distance"), Format::distance(_distance.last(), _units));
|
||||||
Format::distance(_distance.last(), _units));
|
|
||||||
if (_time > 0)
|
if (_time > 0)
|
||||||
tt.insert(qApp->translate("TrackItem", "Time"),
|
tt.insert(tr("Time"), Format::timeSpan(_time));
|
||||||
Format::timeSpan(_time));
|
|
||||||
if (!_date.isNull())
|
if (!_date.isNull())
|
||||||
tt.insert(qApp->translate("TrackItem", "Date"),
|
tt.insert(tr("Date"), _date.toString(Qt::SystemLocaleShortDate));
|
||||||
_date.toString(Qt::SystemLocaleShortDate));
|
|
||||||
|
|
||||||
return tt.toString();
|
return tt.toString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user