Changeset 76935 in vbox
- Timestamp:
- Jan 22, 2019 12:18:08 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
-
UIChooserItemMachine.cpp (modified) (2 diffs)
-
UIChooserItemMachine.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r76933 r76935 620 620 connect(gpManager, &UIVirtualBoxManager::sigWindowRemapped, 621 621 this, &UIChooserItemMachine::sltHandleWindowRemapped); 622 connect(model(), &UIChooserModel::sigSelectionChanged, 623 this, &UIChooserItemMachine::sltUpdateFirstRowMaximumWidth); 624 connect(this, &UIChooserItemMachine::sigHoverEnter, 625 this, &UIChooserItemMachine::sltUpdateFirstRowMaximumWidth); 626 connect(this, &UIChooserItemMachine::sigHoverLeave, 627 this, &UIChooserItemMachine::sltUpdateFirstRowMaximumWidth); 622 628 623 629 /* Init: */ … … 772 778 iFirstRowMaximumWidth -= m_pixmapSize.width(); /* left pixmap width */ 773 779 iFirstRowMaximumWidth -= iMajorSpacing; /* spacing between left pixmap and name(s) */ 774 iFirstRowMaximumWidth -= iMajorSpacing; /* spacing between name(s) and right pixmap */ 775 iFirstRowMaximumWidth -= m_toolsPixmapSize.width() + 2 * iButtonMargin; /* right pixmap width */ 780 if ( model()->currentItem() == this 781 || isHovered()) 782 { 783 iFirstRowMaximumWidth -= iMajorSpacing; /* spacing between name(s) and right pixmap */ 784 iFirstRowMaximumWidth -= m_toolsPixmapSize.width() + 2 * iButtonMargin; /* right pixmap width */ 785 } 776 786 iFirstRowMaximumWidth -= iMargin; /* right margin */ 777 787 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.h
r76933 r76935 192 192 /** Handles top-level window remaps. */ 193 193 void sltHandleWindowRemapped(); 194 195 /** Updates first row maximum width. */ 196 void sltUpdateFirstRowMaximumWidth() { updateFirstRowMaximumWidth(); } 194 197 /** @} */ 195 198
Note:
See TracChangeset
for help on using the changeset viewer.

