Changeset 5071 in vbox
- Timestamp:
- Sep 27, 2007 9:16:12 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/QIRichLabel.h
r4071 r5071 117 117 118 118 QString ltext; 119 QString mTipText; 120 bool mIsMainTip; 119 121 QPixmap *lpixmap; 120 122 QPicture *lpicture; -
trunk/src/VBox/Frontends/VirtualBox/src/QIRichLabel.cpp
r4853 r5071 90 90 { 91 91 mMaxHeightMode = false; 92 mIsMainTip = true; 92 93 baseheight = 0; 93 94 lpixmap = 0; … … 381 382 QString link = doc->anchorAt (aEvent->pos()); 382 383 if (!link.isEmpty()) /* Mouse cursor above link */ 384 { 385 if (mIsMainTip) 386 { 387 mTipText = QToolTip::textFor (this); 388 QToolTip::remove (this); 389 QToolTip::add (this, link); 390 mIsMainTip = false; 391 } 383 392 setCursor (QCursor (Qt::PointingHandCursor)); 393 } 384 394 else /* Mouse cursor above non-link */ 395 { 396 if (!mIsMainTip) 397 { 398 QToolTip::remove (this); 399 QToolTip::add (this, mTipText); 400 mIsMainTip = true; 401 } 385 402 setCursor (QCursor (Qt::ArrowCursor)); 403 } 386 404 } 387 405
Note:
See TracChangeset
for help on using the changeset viewer.