##// END OF EJS Templates
Tooltip for spectrograms (2)...
Alexandre Leroux -
r1025:e6d0518500ef
parent child
Show More
@@ -223,8 +223,9 void VisualizationGraphRenderingDelegate::onMouseMove(QMouseEvent *event) noexce
223 }
223 }
224 }
224 }
225 else if (auto colorMap = qobject_cast<QCPColorMap *>(impl->m_Plot.plottableAt(eventPos))) {
225 else if (auto colorMap = qobject_cast<QCPColorMap *>(impl->m_Plot.plottableAt(eventPos))) {
226 /// @todo
226 // Gets x and y coords
227 tooltip = "TODO";
227 auto x = colorMap->keyAxis()->pixelToCoord(eventPos.x());
228 auto y = colorMap->valueAxis()->pixelToCoord(eventPos.y());
228 }
229 }
229
230
230 if (!tooltip.isEmpty()) {
231 if (!tooltip.isEmpty()) {
General Comments 0
You need to be logged in to leave comments. Login now