Changeset 67092 in vbox
- Timestamp:
- May 25, 2017 3:33:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPane.cpp
r67091 r67092 200 200 m_pTabBar->setIconSize(QSize(iIconMetric, iIconMetric)); 201 201 m_pTabBar->setMovable(true); 202 #ifdef VBOX_WS_MAC 203 /* Snapshots pane tab looks quite alone under macOS: */ 204 m_pTabBar->setAutoHide(true); 205 #endif 202 206 m_pTabBar->setDrawBase(false); 203 207 m_pTabBar->setExpanding(false); … … 325 329 { 326 330 /* Configure button: */ 331 #ifdef VBOX_WS_MAC 332 /* Close buttons should be a bit smaller on macOS: */ 333 pButtonClose->setIconSize(QSize(12, 12)); 334 #endif 327 335 pButtonClose->setIcon(UIIconPool::iconSet(":/close_16px.png")); 328 336 pButtonClose->setProperty("ToolsType", QVariant::fromValue(enmType)); … … 332 340 } 333 341 } 342 #ifdef VBOX_WS_MAC 343 /* Create placeholder of the same height if on macOS: */ 344 else 345 { 346 QWidget *pWidget = new QWidget; 347 pWidget->setFixedSize(1, 26); 348 m_pTabBar->setTabButton(iActualTabIndex, QTabBar::RightSide, pWidget); 349 } 350 #endif 334 351 /* Store the data: */ 335 352 m_pTabBar->setTabData(iActualTabIndex, QVariant::fromValue(enmType));
Note:
See TracChangeset
for help on using the changeset viewer.