Changeset 107388 in vbox
- Timestamp:
- Dec 19, 2024 3:15:22 PM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 166431
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r107357 r107388 36 36 #include <QStyle> 37 37 #include <QStyleOptionGraphicsItem> 38 #include <QToolTip> 38 39 #include <QWindow> 39 40 … … 411 412 emit sigHoverEnter(); 412 413 update(); 414 415 /* Show text at the right of item: */ 416 if (!model()->tools()->isPopup()) 417 { 418 const QPointF posAtScene = mapToScene(rect().topRight() + QPoint(3, -3)); 419 const QPoint posAtScreen = model()->tools()->mapToGlobal(posAtScene.toPoint()); 420 QToolTip::showText(posAtScreen, name()); 421 } 413 422 } 414 423 } … … 421 430 emit sigHoverLeave(); 422 431 update(); 432 433 /* Hide text for good: */ 434 if (!model()->tools()->isPopup()) 435 QToolTip::hideText(); 423 436 } 424 437 }
Note:
See TracChangeset
for help on using the changeset viewer.