|
From: Tapio V. <aa...@us...> - 2011-01-06 18:04:11
|
Module: editor
Branch: master
Commit: 3fae72ef9bb5c4a1d7874d9988e5ee15ff6c8eaf
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 6 19:29:04 2011 +0200
Add tool- and statustips for note labels.
---
notelabel.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/notelabel.cc b/notelabel.cc
index ecc0351..ae132fb 100644
--- a/notelabel.cc
+++ b/notelabel.cc
@@ -50,6 +50,9 @@ void NoteLabel::createPixmap(QSize size)
painter.end();
setPixmap(QPixmap::fromImage(image));
+
+ setToolTip(m_labelText);
+ setStatusTip(QString("Lyric: ") + m_labelText);
}
QString NoteLabel::getText() const
|