- Timestamp:
- Jun 5, 2008 8:55:54 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDiskImageManagerDlg.h
r9296 r9404 126 126 void clearInfoPanes(); 127 127 void prepareToRefresh (int aTotal = 0); 128 void createInfoString (InfoPaneLabel *&aInfo, QWidget* aRoot, int aRow, int aCol, int aRowSpan = 1, int aColSpan = 1) const;128 void createInfoString (InfoPaneLabel *&aInfo, QWidget* aRoot, bool aLeftRigthMargin, int aRow, int aCol, int aRowSpan = 1, int aColSpan = 1) const; 129 129 130 130 void makeWarningMark (DiskImageItem *aItem, VBoxMedia::Status aStatus, VBoxDefs::DiskType aType) const; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDiskImageManagerDlg.cpp
r9386 r9404 412 412 fdsContainerLayout->setSpacing (0); 413 413 /* Create info-pane for hd list-view */ 414 createInfoString (mHdsPane1, mHdsContainer, 0, 0, 1, 3);415 createInfoString (mHdsPane2, mHdsContainer, 1, 0);416 createInfoString (mHdsPane3, mHdsContainer, 1, 2);417 createInfoString (mHdsPane4, mHdsContainer, 2, 0);418 createInfoString (mHdsPane5, mHdsContainer, 2, 2);414 createInfoString (mHdsPane1, mHdsContainer, false, 0, 0, 1, 3); 415 createInfoString (mHdsPane2, mHdsContainer, true, 1, 0); 416 createInfoString (mHdsPane3, mHdsContainer, false, 1, 2); 417 createInfoString (mHdsPane4, mHdsContainer, true, 2, 0); 418 createInfoString (mHdsPane5, mHdsContainer, false, 2, 2); 419 419 /* Create info-pane for cd list-view */ 420 createInfoString (mCdsPane1, mCdsContainer, 0, 0);421 createInfoString (mCdsPane2, mCdsContainer, 1, 0);420 createInfoString (mCdsPane1, mCdsContainer, false, 0, 0); 421 createInfoString (mCdsPane2, mCdsContainer, false, 1, 0); 422 422 /* Create info-pane for fd list-view */ 423 createInfoString (mFdsPane1, mFdsContainer, 0, 0);424 createInfoString (mFdsPane2, mFdsContainer, 1, 0);423 createInfoString (mFdsPane1, mFdsContainer, false, 0, 0); 424 createInfoString (mFdsPane2, mFdsContainer, false, 1, 0); 425 425 426 426 /* Enumeration progressbar creation */ … … 1997 1997 void VBoxDiskImageManagerDlg::createInfoString (InfoPaneLabel *&aInfo, 1998 1998 QWidget *aRoot, 1999 bool aLeftRigthMargin, 1999 2000 int aRow, int aCol, 2000 2001 int aRowSpan /* = 1 */, int aColSpan /* = 1 */) const … … 2015 2016 /* Add the two widgets */ 2016 2017 rootLayout->addWidget (nameLabel, aRow, aCol, 1, 1); 2018 int margin = aInfo->style()->pixelMetric (QStyle::PM_LayoutHorizontalSpacing); 2019 #if QT_VERSION >= 0x040300 2020 if (margin == -1) 2021 margin = aInfo->style()->layoutSpacing (QSizePolicy::Label, QSizePolicy::Label, Qt::Horizontal); 2022 #endif /* QT_VERSION >= 0x040300 */ 2023 if (aLeftRigthMargin) 2024 aInfo->setContentsMargins (margin, NULL, margin, NULL); 2025 else 2026 aInfo->setContentsMargins (margin, NULL, NULL, NULL); 2017 2027 rootLayout->addWidget (aInfo, aRow, aCol + 1, aRowSpan, aColSpan); 2018 2028 }
Note:
See TracChangeset
for help on using the changeset viewer.