Skip to content
Snippets Groups Projects
Commit fccf319d authored by SeeLook's avatar SeeLook
Browse files

fixed scaling of name tip

parent e4bc0d9a
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,13 @@ void TnameTip::unwrapNoteName() { ...@@ -66,6 +66,13 @@ void TnameTip::unwrapNoteName() {
} }
void TnameTip::adjustSize() {
m_widget->adjustSize();
m_proxy->adjustSize();
QGraphicsTextItem::adjustSize();
}
void TnameTip::show() { void TnameTip::show() {
m_hideTimer->stop(); m_hideTimer->stop();
m_hideTimer->start(2000); // if user didn't put mouse over the tip after 2 sec. - hide it m_hideTimer->start(2000); // if user didn't put mouse over the tip after 2 sec. - hide it
......
...@@ -43,6 +43,8 @@ public: ...@@ -43,6 +43,8 @@ public:
void wrapNoteName(); /** It takes note name inside again. */ void wrapNoteName(); /** It takes note name inside again. */
void unwrapNoteName(); /** Sets wrapped widget to 0 */ void unwrapNoteName(); /** Sets wrapped widget to 0 */
void adjustSize();
virtual QRectF boundingRect() const { return m_proxy->boundingRect(); } virtual QRectF boundingRect() const { return m_proxy->boundingRect(); }
public slots: public slots:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment