diff --git a/src/notename/tnametip.cpp b/src/notename/tnametip.cpp index 54cb01a7f8a8857ed66dff1a67bcc0a025d566c8..efe5752b90abda42f1af718889458d3dd43a77ef 100644 --- a/src/notename/tnametip.cpp +++ b/src/notename/tnametip.cpp @@ -66,6 +66,13 @@ void TnameTip::unwrapNoteName() { } +void TnameTip::adjustSize() { + m_widget->adjustSize(); + m_proxy->adjustSize(); + QGraphicsTextItem::adjustSize(); +} + + void TnameTip::show() { m_hideTimer->stop(); m_hideTimer->start(2000); // if user didn't put mouse over the tip after 2 sec. - hide it diff --git a/src/notename/tnametip.h b/src/notename/tnametip.h index 0954f8dd12ffc101816946743d215f8592cc6412..d0a21f8652494c70498cc7cd98338da58c431aa2 100644 --- a/src/notename/tnametip.h +++ b/src/notename/tnametip.h @@ -43,6 +43,8 @@ public: void wrapNoteName(); /** It takes note name inside again. */ void unwrapNoteName(); /** Sets wrapped widget to 0 */ + void adjustSize(); + virtual QRectF boundingRect() const { return m_proxy->boundingRect(); } public slots: