#ifndef TOOLTIP_H #define TOOLTIP_H #include #include #include #include "common/kv.h" #include "data/imageinfo.h" class ToolTip { public: const QList > &list() const {return _list;} const QVector &images() const {return _images;} bool isEmpty() const { return _list.isEmpty() && _images.isEmpty(); } bool operator==(const ToolTip &other) const { return (_list == other._list && _images == other._images); } bool operator!=(const ToolTip &other) const { return (_list != other._list || _images != other._images); } void insert(const QString &key, const QString &value) { _list.append(KV(key, value)); } void setImages(const QVector &images) { _images = images; } private: QList > _list; QVector _images; }; #endif // TOOLTIP_H