mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 07:13:21 +02:00
19 lines
385 B
C++
19 lines
385 B
C++
|
#include "infoitem.h"
|
||
|
#include "trackinfo.h"
|
||
|
|
||
|
TrackInfo::TrackInfo(QObject *parent) : QGraphicsScene(parent)
|
||
|
{
|
||
|
_info = new InfoItem();
|
||
|
addItem(_info);
|
||
|
}
|
||
|
|
||
|
void TrackInfo::insert(const QString &key, const QString &value)
|
||
|
{
|
||
|
_info->insert(key, value);
|
||
|
}
|
||
|
|
||
|
void TrackInfo::plot(QPainter *painter, const QRectF &target)
|
||
|
{
|
||
|
render(painter, QRectF(0, 0, target.width(), target.height()));
|
||
|
}
|