Changeset 93234 in vbox
- Timestamp:
- Jan 14, 2022 2:27:29 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r93226 r93234 128 128 if (m_pSourceImageList) 129 129 { 130 /* We want to have sorting enabled: */ 130 131 m_pSourceImageList->setSortingEnabled(true); 131 /* Make source image list fit 40/50 symbols 132 * horizontally and 8 lines vertically: */ 133 const QFontMetrics fm(m_pSourceImageList->font()); 134 const int iFontWidth = fm.width('x'); 135 #ifdef VBOX_WS_MAC 136 const int iTotalWidth = 40 * iFontWidth; 137 #else 138 const int iTotalWidth = 50 * iFontWidth; 139 #endif 140 const int iFontHeight = fm.height(); 141 const int iTotalHeight = 8 * iFontHeight; 142 m_pSourceImageList->setMinimumSize(QSize(iTotalWidth, iTotalHeight)); 132 /* A bit of look&feel: */ 143 133 m_pSourceImageList->setAlternatingRowColors(true); 144 134 … … 166 156 if (m_pFormEditor) 167 157 { 168 /* Make form editor fit fit 40/50 symbols169 * horizontally and 8 sections vertically: */170 const QFontMetrics fm(m_pSourceImageList->font());171 const int iFontWidth = fm.width('x');172 #ifdef VBOX_WS_MAC173 const int iTotalWidth = 40 * iFontWidth;174 #else175 const int iTotalWidth = 50 * iFontWidth;176 #endif177 const int iSectionHeight = m_pFormEditor->verticalHeader()178 ? m_pFormEditor->verticalHeader()->defaultSectionSize()179 : fm.height();180 const int iTotalHeight = 8 * iSectionHeight;181 m_pFormEditor->setMinimumSize(QSize(iTotalWidth, iTotalHeight));182 183 158 /* Add into layout: */ 184 159 pLayoutSettings->addWidget(m_pFormEditor); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r93115 r93234 392 392 const int iTotalHeight = 8 * iFontHeight; 393 393 m_pSourceImageList->setMinimumSize(QSize(iTotalWidth, iTotalHeight)); 394 /* We want to have sorting enabled: */ 395 m_pSourceImageList->setSortingEnabled(true); 396 /* A bit of look&feel: */ 394 397 m_pSourceImageList->setAlternatingRowColors(true); 395 m_pSourceImageList->setSortingEnabled(true);396 398 397 399 /* Add into layout: */
Note:
See TracChangeset
for help on using the changeset viewer.