- Timestamp:
- Nov 22, 2023 6:50:08 PM (15 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp
r100896 r102269 489 489 void UICloudConsoleManagerWidget::retranslateUi() 490 490 { 491 /* Adjust toolbar: */492 #ifdef VBOX_WS_MAC493 // WORKAROUND:494 // There is a bug in Qt Cocoa which result in showing a "more arrow" when495 // the necessary size of the toolbar is increased. Also for some languages496 // the with doesn't match if the text increase. So manually adjust the size497 // after changing the text.498 if (m_pToolBar)499 m_pToolBar->updateLayout();500 #endif501 502 491 /* Translate tree-widget: */ 503 492 m_pTreeWidget->setHeaderLabels( QStringList() -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r100896 r102269 200 200 void UICloudProfileManagerWidget::retranslateUi() 201 201 { 202 /* Adjust toolbar: */203 #ifdef VBOX_WS_MAC204 // WORKAROUND:205 // There is a bug in Qt Cocoa which result in showing a "more arrow" when206 // the necessary size of the toolbar is increased. Also for some languages207 // the with doesn't match if the text increase. So manually adjust the size208 // after changing the text.209 if (m_pToolBar)210 m_pToolBar->updateLayout();211 #endif212 213 202 /* Translate tree-widget: */ 214 203 m_pTreeWidget->setHeaderLabels( QStringList() -
trunk/src/VBox/Frontends/VirtualBox/src/extensionpackmanager/UIExtensionPackManager.cpp
r100896 r102269 199 199 void UIExtensionPackManagerWidget::retranslateUi() 200 200 { 201 /* Adjust toolbar: */202 #ifdef VBOX_WS_MAC203 // WORKAROUND:204 // There is a bug in Qt Cocoa which result in showing a "more arrow" when205 // the necessary size of the toolbar is increased. Also for some languages206 // the with doesn't match if the text increase. So manually adjust the size207 // after changing the text.208 if (m_pToolBar)209 m_pToolBar->updateLayout();210 #endif211 212 201 /* Translate tree-widget: */ 213 202 m_pTreeWidget->setHeaderLabels( QStringList() -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIToolBar.cpp
r100885 r102269 93 93 { 94 94 ::darwinSetShowsToolbarButton(this, fShow); 95 }96 97 void QIToolBar::updateLayout()98 {99 // WORKAROUND:100 // There is a bug in Qt Cocoa which result in showing a "more arrow" when101 // the necessary size of the tool-bar is increased. Also for some languages102 // the with doesn't match if the text increase. So manually adjust the size103 // after changing the text.104 QSizePolicy sp = sizePolicy();105 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);106 adjustSize();107 setSizePolicy(sp);108 layout()->invalidate();109 layout()->activate();110 95 } 111 96 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIToolBar.h
r98103 r102269 78 78 /** Mac OS X: Defines whether native tool-bar button should be shown. */ 79 79 void setShowToolBarButton(bool fShow); 80 /** Mac OS X: Updates native tool-bar layout. */81 void updateLayout();82 80 83 81 /** Mac OS X: Defines branding stuff to be shown. -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r101563 r102269 1810 1810 void UIHelpBrowserWidget::retranslateUi() 1811 1811 { 1812 /* Translate toolbar: */1813 #ifdef VBOX_WS_MAC1814 // WORKAROUND:1815 // There is a bug in Qt Cocoa which result in showing a "more arrow" when1816 // the necessary size of the toolbar is increased. Also for some languages1817 // the with doesn't match if the text increase. So manually adjust the size1818 // after changing the text. */1819 if (m_pToolBar)1820 m_pToolBar->updateLayout();1821 #endif1822 1812 if (m_pTabWidget) 1823 1813 { -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r101092 r102269 895 895 void UIVMLogViewerWidget::retranslateUi() 896 896 { 897 /* Translate toolbar: */898 #ifdef VBOX_WS_MAC899 // WORKAROUND:900 // There is a bug in Qt Cocoa which result in showing a "more arrow" when901 // the necessary size of the toolbar is increased. Also for some languages902 // the with doesn't match if the text increase. So manually adjust the size903 // after changing the text. */904 if (m_pToolBar)905 m_pToolBar->updateLayout();906 #endif907 897 if (m_pCornerButton) 908 898 m_pCornerButton->setToolTip(tr("Select machines to show their log")); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r102268 r102269 342 342 /* Make sure chosen item fetched: */ 343 343 sltHandleChooserPaneIndexChange(); 344 345 #ifdef VBOX_WS_MAC346 // WORKAROUND:347 // There is a bug in Qt Cocoa which result in showing a "more arrow" when348 // the necessary size of the toolbar is increased. Also for some languages349 // the with doesn't match if the text increase. So manually adjust the size350 // after changing the text.351 m_pToolBar->updateLayout();352 #endif353 344 } 354 345 … … 1054 1045 } 1055 1046 } 1056 1057 #ifdef VBOX_WS_MAC1058 // WORKAROUND:1059 // Actually Qt should do that itself but by some unknown reason it sometimes1060 // forget to update toolbar after changing its actions on Cocoa platform.1061 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_New), &UIAction::changed,1062 m_pToolBar, static_cast<void(QIToolBar::*)(void)>(&QIToolBar::update)); // update ambiguity1063 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings), &UIAction::changed,1064 m_pToolBar, static_cast<void(QIToolBar::*)(void)>(&QIToolBar::update)); // update ambiguity1065 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard), &UIAction::changed,1066 m_pToolBar, static_cast<void(QIToolBar::*)(void)>(&QIToolBar::update)); // update ambiguity1067 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow), &UIAction::changed,1068 m_pToolBar, static_cast<void(QIToolBar::*)(void)>(&QIToolBar::update)); // update ambiguity1069 1070 // WORKAROUND:1071 // There is a bug in Qt Cocoa which result in showing a "more arrow" when1072 // the necessary size of the toolbar is increased. Also for some languages1073 // the with doesn't match if the text increase. So manually adjust the size1074 // after changing the text.1075 m_pToolBar->updateLayout();1076 #endif /* VBOX_WS_MAC */1077 1047 } 1078 1048 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r100896 r102269 197 197 void UIMediumManagerWidget::retranslateUi() 198 198 { 199 /* Adjust toolbar: */200 #ifdef VBOX_WS_MAC201 // WORKAROUND:202 // There is a bug in Qt Cocoa which result in showing a "more arrow" when203 // the necessary size of the toolbar is increased. Also for some languages204 // the with doesn't match if the text increase. So manually adjust the size205 // after changing the text. */206 if (m_pToolBar)207 m_pToolBar->updateLayout();208 #endif209 210 199 /* Translate tab-widget: */ 211 200 if (m_pTabWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp
r100896 r102269 408 408 void UINetworkManagerWidget::retranslateUi() 409 409 { 410 /* Adjust toolbar: */411 #ifdef VBOX_WS_MAC412 // WORKAROUND:413 // There is a bug in Qt Cocoa which result in showing a "more arrow" when414 // the necessary size of the toolbar is increased. Also for some languages415 // the with doesn't match if the text increase. So manually adjust the size416 // after changing the text.417 if (m_pToolBar)418 m_pToolBar->updateLayout();419 #endif /* VBOX_WS_MAC */420 421 410 /* Translate tab-widget: */ 422 411 if (m_pTabWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r99607 r102269 658 658 /* Translate snapshot tree: */ 659 659 m_pSnapshotTree->setWhatsThis(tr("Contains the snapshot tree of the current virtual machine")); 660 661 /* Translate toolbar: */662 #ifdef VBOX_WS_MAC663 // WORKAROUND:664 // There is a bug in Qt Cocoa which result in showing a "more arrow" when665 // the necessary size of the toolbar is increased. Also for some languages666 // the with doesn't match if the text increase. So manually adjust the size667 // after changing the text. */668 if (m_pToolBar)669 m_pToolBar->updateLayout();670 #endif671 660 672 661 /* Translate snapshot tree: */
Note:
See TracChangeset
for help on using the changeset viewer.