mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 07:13:21 +02:00
31 lines
444 B
C
31 lines
444 B
C
|
#ifndef TOOLTIP_H
|
||
|
#define TOOLTIP_H
|
||
|
|
||
|
#include <QString>
|
||
|
#include <QList>
|
||
|
|
||
|
class ToolTip
|
||
|
{
|
||
|
public:
|
||
|
ToolTip();
|
||
|
|
||
|
void insert(const QString &key, const QString &value);
|
||
|
QString toString();
|
||
|
|
||
|
private:
|
||
|
class KV {
|
||
|
public:
|
||
|
QString key;
|
||
|
QString value;
|
||
|
|
||
|
KV(const QString &k, const QString &v)
|
||
|
{key = k; value = v;}
|
||
|
bool operator==(const KV &other) const
|
||
|
{return this->key == other.key;}
|
||
|
};
|
||
|
|
||
|
QList<KV> _list;
|
||
|
};
|
||
|
|
||
|
#endif // TOOLTIP_H
|