1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/GUI/tooltip.cpp

21 lines
416 B
C++
Raw Normal View History

2016-08-02 00:28:56 +02:00
#include "tooltip.h"
void ToolTip::insert(const QString &key, const QString &value)
{
QPair<QString, QString> entry(key, value);
_list.append(entry);
2016-08-02 00:28:56 +02:00
}
QString ToolTip::toString()
{
QString ret = "<table>";
2016-08-02 00:28:56 +02:00
for (int i = 0; i < _list.count(); i++)
ret += "<tr><td align=\"right\"><b>" + _list.at(i).first
+ ":&nbsp;</b></td><td>" + _list.at(i).second + "</td></tr>";
ret += "</table>";
2016-08-02 00:28:56 +02:00
return ret;
}