Changeset 90034 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 5, 2021 3:50:50 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145528
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r89997 r90034 134 134 { 135 135 m_pSourceImageList->setSortingEnabled(true); 136 /* Make source image list fit 50 symbols136 /* Make source image list fit 40/50 symbols 137 137 * horizontally and 8 lines vertically: */ 138 138 const QFontMetrics fm(m_pSourceImageList->font()); 139 139 const int iFontWidth = fm.width('x'); 140 #ifdef VBOX_WS_MAC 141 const int iTotalWidth = 40 * iFontWidth; 142 #else 140 143 const int iTotalWidth = 50 * iFontWidth; 144 #endif 141 145 const int iFontHeight = fm.height(); 142 146 const int iTotalHeight = 8 * iFontHeight; … … 165 169 if (m_pFormEditor) 166 170 { 167 /* Make form editor fit fit 50 symbols171 /* Make form editor fit fit 40/50 symbols 168 172 * horizontally and 8 sections vertically: */ 169 173 const QFontMetrics fm(m_pSourceImageList->font()); 170 174 const int iFontWidth = fm.width('x'); 175 #ifdef VBOX_WS_MAC 176 const int iTotalWidth = 40 * iFontWidth; 177 #else 171 178 const int iTotalWidth = 50 * iFontWidth; 179 #endif 172 180 const int iSectionHeight = m_pFormEditor->verticalHeader() 173 181 ? m_pFormEditor->verticalHeader()->defaultSectionSize()
Note:
See TracChangeset
for help on using the changeset viewer.