From ffabde2454ba1ee7167b160808cfe53a5f07cec4 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 10 Aug 2014 10:28:02 +1000 Subject: [PATCH] Show pin tooltip over graph title --- sleepyhead/Graphs/gGraphView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleepyhead/Graphs/gGraphView.cpp b/sleepyhead/Graphs/gGraphView.cpp index 1215c086..eb0878bd 100644 --- a/sleepyhead/Graphs/gGraphView.cpp +++ b/sleepyhead/Graphs/gGraphView.cpp @@ -1358,6 +1358,9 @@ void gGraphView::mouseMoveEvent(QMouseEvent *event) if (x >= titleWidth + 10) { this->setCursor(Qt::ArrowCursor); } else { + m_tooltip->display("Double click title to pin\nClick and drag to reorder graphs", x + 10, y, TT_AlignLeft); + timedRedraw(30); + this->setCursor(Qt::OpenHandCursor); }