1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-09 16:54:28 +02:00

Hyperlink + copy&paste enabled tool tips

This commit is contained in:
2019-10-13 20:20:32 +02:00
parent de9bae9d66
commit a9ce6f54c7
33 changed files with 286 additions and 96 deletions

View File

@ -1,4 +1,6 @@
#include <QImageReader>
#include <QLabel>
#include "popup.h"
#include "tooltip.h"
@ -26,7 +28,8 @@ QString ToolTip::toString() const
}
html += "<div align=\"center\">";
html += QString("<img src=\"file:%0\" width=\"%1\" height=\"%2\"/>")
html += QString("<a href=\"file:%0\">"
"<img src=\"file:%0\" width=\"%1\" height=\"%2\"/></a>")
.arg(_img.path(), QString::number(width), QString::number(height));
html += "</div>";
}