- Timestamp:
- Nov 17, 2017 3:48:58 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.cpp
r69500 r69726 142 142 { 143 143 /* Configure main-layout: */ 144 m_pMainLayout->setSpacing(5);145 /* Not sure 0 margins are default, but just to be safe: */146 144 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 147 145 … … 607 605 AssertPtrReturnVoid(m_pMainLayout); 608 606 { 609 /* Prepare main-layout: */ 610 m_pMainLayout->setSpacing(5); 611 /* Not sure 0 margins are default, but just to be safe: */ 607 /* Configure main-layout: */ 612 608 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 613 609 … … 1171 1167 QVBoxLayout *pPageLayout = new QVBoxLayout(pPageContainer); 1172 1168 AssertPtrReturn(pPageLayout, 0); 1173 {1174 pPageLayout->setContentsMargins(10, 10, 10, 10);1175 }1176 1169 /* Create Log-Viewer: */ 1177 1170 QTextEdit *pLogViewer = new QTextEdit(pPageContainer); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.cpp
r69500 r69726 58 58 59 59 QVBoxLayout *mainLayout = new QVBoxLayout (this); 60 mainLayout->setSpacing (10);61 mainLayout->setContentsMargins(10, 10, 10, 10);62 60 mainLayout->addWidget (mLicenseText); 63 61 mainLayout->addWidget (dbb); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r67967 r69726 121 121 { 122 122 /* Configure layout: */ 123 centralWidget()->layout()->setContentsMargins(5, 5, 5, 5); 124 centralWidget()->layout()->setSpacing(10); 123 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 124 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) / 2; 125 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2; 126 const int iB = qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin) / 2; 127 centralWidget()->layout()->setContentsMargins(iL, iT, iR, iB); 125 128 126 129 /* Configure central-widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r69500 r69726 174 174 pMainLayout->setContentsMargins(40, 11, 40, 11); 175 175 pMainLayout->setSpacing(15); 176 #else /* !VBOX_WS_MAC */ 177 pMainLayout->setContentsMargins(11, 11, 11, 11); 178 pMainLayout->setSpacing(10); 179 #endif /* !VBOX_WS_MAC */ 176 #endif /* VBOX_WS_MAC */ 180 177 /* Create top-layout: */ 181 178 QHBoxLayout *pTopLayout = new QHBoxLayout; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r69722 r69726 1445 1445 #else /* !VBOX_WS_MAC */ 1446 1446 /* Set spacing/margin like in the selector window: */ 1447 m_pMainLayout->setSpacing(5); 1448 m_pMainLayout->setContentsMargins(5, 5, 5, 5); 1447 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 1448 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) / 2; 1449 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2; 1450 const int iB = qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin) / 2; 1451 m_pMainLayout->setContentsMargins(iL, iT, iR, iB); 1449 1452 #endif /* !VBOX_WS_MAC */ 1450 1453 /* Prepare tool-bar: */ … … 1536 1539 { 1537 1540 /* Configure layout: */ 1538 pLayout->setContentsMargins(0, 0, 3, 0); 1541 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 3; 1542 pLayout->setContentsMargins(0, 0, iR, 0); 1539 1543 /* Create chooser-filter: */ 1540 1544 m_pFilterOfChooser = new QLineEdit; … … 1601 1605 { 1602 1606 /* Configure layout: */ 1603 pLayout->setContentsMargins(3, 0, 0, 0); 1607 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 3; 1608 pLayout->setContentsMargins(iL, 0, 0, 0); 1604 1609 /* Create data-filter: */ 1605 1610 m_pFilterOfData = new QLineEdit; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp
r69670 r69726 569 569 /* Configure layout: */ 570 570 pLayout->setVerticalSpacing(0); 571 pLayout->setContentsMargins(5, 5, 5, 5);572 571 pLayout->setColumnStretch(1, 1); 573 572 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.cpp
r69550 r69726 71 71 /* Create main-layout: */ 72 72 QVBoxLayout *pMainLayout = new QVBoxLayout(centralWidget()); 73 pMainLayout->setContentsMargins(6, 6, 6, 6);74 73 75 74 /* Create description-label: */ -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequestWidget.cpp
r69550 r69726 22 22 /* Global includes: */ 23 23 # include <QTimer> 24 # include <QStyle> 24 25 # include <QGridLayout> 25 26 # include <QProgressBar> … … 69 70 70 71 /* Setup main-layout: */ 71 m_pMainLayout->setContentsMargins(6, 6, 6, 6); 72 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 73 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) / 2; 74 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2; 75 const int iB = qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin) / 2; 76 m_pMainLayout->setContentsMargins(iL, iT, iR, iB); 72 77 73 78 /* Setup progress-bar: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r69500 r69726 60 60 { 61 61 /* Configure layout: */ 62 m_pMainLayout->setContentsMargins(2, 0, 0, 0);63 62 m_pMainLayout->setSpacing(0); 64 63 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r69500 r69726 60 60 { 61 61 /* Configure layout: */ 62 m_pMainLayout->setContentsMargins(2, 0, 0, 0);63 62 m_pMainLayout->setSpacing(0); 64 63 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIDesktopPane.cpp
r69645 r69726 615 615 /* Create main layout: */ 616 616 QVBoxLayout *pMainLayout = new QVBoxLayout(m_pErrBox); 617 #if defined(VBOX_WS_MAC)617 #ifdef VBOX_WS_MAC 618 618 pMainLayout->setContentsMargins(4, 5, 5, 5); 619 #el if defined(VBOX_WS_WIN)620 pMainLayout->setContentsMargins(3, 5, 5, 0);621 #elif defined(VBOX_WS_X11) 622 pMainLayout->setContentsMargins(0, 5, 5, 5);623 #endif 624 pMainLayout->setSpacing(10); 619 #else /* !VBOX_WS_MAC */ 620 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 3; 621 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) / 3; 622 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 3; 623 pMainLayout->setContentsMargins(iL, iT, iR, 0); 624 #endif /* !VBOX_WS_MAC */ 625 625 626 626 /* Create error label: */ … … 688 688 AssertPtrReturnVoid(pLayoutWelcome); 689 689 { 690 /* Invent pixel metric: */691 const int iMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 4;692 693 690 /* Configure layout: */ 694 pLayoutWelcome->setContentsMargins(iMetric, 0, 0, 0);695 pLayoutWelcome->set Spacing(10);691 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 692 pLayoutWelcome->setContentsMargins(iL, 0, 0, 0); 696 693 697 694 /* Create welcome text label: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r69552 r69726 1841 1841 { 1842 1842 /* Configure tab-bar: */ 1843 m_pTabBarMachine->setContentsMargins(10, 0, 10, 0); 1843 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 1844 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2; 1845 m_pTabBarMachine->setContentsMargins(iL, 0, iR, 0); 1844 1846 1845 1847 /* Add into toolbar: */ … … 1852 1854 { 1853 1855 /* Configure tab-bar: */ 1854 m_pTabBarGlobal->setContentsMargins(10, 0, 10, 0); 1856 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2; 1857 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2; 1858 m_pTabBarGlobal->setContentsMargins(iL, 0, iR, 0); 1855 1859 1856 1860 /* Add into toolbar: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.cpp
r69057 r69726 219 219 /* Create stacked-layout: */ 220 220 m_pLayout = new QStackedLayout(this); 221 AssertPtrReturnVoid(m_pLayout);222 {223 /* Configure layout: */224 m_pLayout->setSpacing(0);225 m_pLayout->setContentsMargins(3, 4, 5, 0);226 }227 221 228 222 /* Create desktop pane: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.cpp
r69057 r69726 272 272 /* Create stacked-layout: */ 273 273 m_pLayout = new QStackedLayout(this); 274 AssertPtrReturnVoid(m_pLayout);275 {276 /* Configure layout: */277 m_pLayout->setSpacing(0);278 m_pLayout->setContentsMargins(3, 4, 5, 0);279 }280 274 281 275 /* Create desktop pane: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.cpp
r69500 r69726 23 23 # include <QVBoxLayout> 24 24 # include <QStatusBar> 25 # include <QStyle> 25 26 26 27 /* GUI includes: */ … … 109 110 /* Setup main-layout: */ 110 111 m_pMainLayout = new QVBoxLayout(this); 111 m_pMainLayout->setContentsMargins(0, 0, 2, 0); 112 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 9; 113 m_pMainLayout->setContentsMargins(0, 0, iR, 0); 112 114 m_pMainLayout->setSpacing(0); 113 115 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.cpp
r69500 r69726 22 22 /* Qt includes: */ 23 23 # include <QApplication> 24 # include <QStyle> 24 25 # include <QVBoxLayout> 25 26 … … 73 74 /* Setup main-layout: */ 74 75 m_pMainLayout = new QVBoxLayout(this); 75 m_pMainLayout->setContentsMargins(2, 0, 0, 0); 76 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 9; 77 m_pMainLayout->setContentsMargins(iL, 0, 0, 0); 76 78 m_pMainLayout->setSpacing(0); 77 79 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r68435 r69726 1252 1252 AssertPtrReturnVoid(pMainLayout); 1253 1253 { 1254 /* Configure layout: */1255 pMainLayout->setContentsMargins(0, 5, 0, 5);1256 1257 1254 /* Creating tab-widget: */ 1258 1255 m_pTabWidget = new QITabWidget; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r68435 r69726 562 562 AssertPtrReturnVoid(pMainLayout); 563 563 { 564 /* Configure layout: */565 pMainLayout->setContentsMargins(0, 5, 0, 5);566 567 564 /* Creating tab-widget: */ 568 565 m_pTabWidget = new QITabWidget; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp
r69500 r69726 169 169 #ifdef VBOX_WS_MAC 170 170 m_pMainLayout->setContentsMargins(10, 10, 15, 10); 171 #else /* VBOX_WS_MAC */ 172 m_pMainLayout->setContentsMargins(10, 10, 10, 10); 173 #endif /* !VBOX_WS_MAC */ 171 #endif /* VBOX_WS_MAC */ 174 172 175 173 /* Add strech: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.cpp
r69500 r69726 50 50 /* Setup main-layout: */ 51 51 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 52 pMainLayout->setContentsMargins(10, 5, 5, 5);53 52 /* Setup title-layout: */ 54 53 QHBoxLayout *pTitleLayout = new QHBoxLayout; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.cpp
r69500 r69726 246 246 247 247 QHBoxLayout *layout = new QHBoxLayout(this); 248 layout->setContentsMargins(0, 0, 0, 0); 248 249 for (int i=0; i < aCount; ++i) 249 250 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp
r69200 r69726 49 49 QGridLayout *pMainLayout = new QGridLayout(this); 50 50 { 51 pMainLayout->setContentsMargins(8, 6, 8, 6);52 pMainLayout->setSpacing(10);53 51 m_pSourceDiskCnt = new QGroupBox(this); 54 52 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp
r69500 r69726 43 43 QGridLayout *pMainLayout = new QGridLayout(this); 44 44 { 45 pMainLayout->setContentsMargins(8, 6, 8, 6);46 pMainLayout->setSpacing(10);47 45 m_pNameCnt = new QGroupBox(this); 48 46 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r68073 r69726 47 47 QGridLayout *pMainLayout = new QGridLayout(this); 48 48 { 49 pMainLayout->setContentsMargins(8, 6, 8, 6);50 pMainLayout->setSpacing(10);51 49 m_pSelectorCnt = new QGroupBox(this); 52 50 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
r69500 r69726 68 68 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 69 69 { 70 pMainLayout->setContentsMargins(8, 0, 8, 0);71 pMainLayout->setSpacing(10);72 70 m_pLabel = new QIRichTextLabel(this); 73 71 QHBoxLayout *pSourceDiskLayout = new QHBoxLayout; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r69500 r69726 40 40 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 41 41 { 42 pMainLayout->setContentsMargins(8, 6, 8, 6);43 pMainLayout->setSpacing(10);44 42 m_pApplianceCnt = new QGroupBox(this); 45 43 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r69500 r69726 55 55 QGridLayout *pMainLayout = new QGridLayout(this); 56 56 { 57 pMainLayout->setContentsMargins(8, 6, 8, 6);58 pMainLayout->setSpacing(10);59 57 m_pLocationCnt = new QGroupBox(this); 60 58 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r69500 r69726 50 50 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 51 51 { 52 pMainLayout->setContentsMargins(8, 6, 8, 6);53 pMainLayout->setSpacing(10);54 52 m_pNameAndSystemCnt = new QGroupBox(this); 55 53 {
Note:
See TracChangeset
for help on using the changeset viewer.