Changeset 40146 in vbox
- Timestamp:
- Feb 16, 2012 11:11:26 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76297
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.cpp
r40142 r40146 63 63 } 64 64 65 void QIWizard::resizeToGoldenRatio( )65 void QIWizard::resizeToGoldenRatio(double dRatio) 66 66 { 67 67 /* Use some small (!) initial QIRichTextLabel width: */ … … 96 96 iCurrentWizardWidth += iWatermarkWidth; 97 97 #endif /* !Q_WS_MAC */ 98 int iGoldenRatioWidth = (int)qSqrt( (float)1.6* iCurrentWizardWidth * iCurrentWizardHeight);98 int iGoldenRatioWidth = (int)qSqrt(dRatio * iCurrentWizardWidth * iCurrentWizardHeight); 99 99 int iProposedLabelWidth = iGoldenRatioWidth - iMarginsLength; 100 100 #ifndef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.h
r40142 r40146 49 49 50 50 /* Adjusting stuff: */ 51 void resizeToGoldenRatio( );51 void resizeToGoldenRatio(double dRatio = 1.6); 52 52 53 53 /* Design stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.cpp
r40142 r40146 77 77 78 78 /* Resize to 'golden ratio' */ 79 resizeToGoldenRatio( );79 resizeToGoldenRatio(1.8); 80 80 81 81 /* Setup connections */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIImportApplianceWzd.cpp
r40142 r40146 132 132 133 133 /* Resize to 'golden ratio' */ 134 resizeToGoldenRatio( );134 resizeToGoldenRatio(1.8); 135 135 136 136 /* Configure 'Restore Defaults' button */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWizard.cpp
r40142 r40146 218 218 219 219 /* Resize wizard to 'golden ratio': */ 220 resizeToGoldenRatio( );220 resizeToGoldenRatio(1.8); 221 221 } 222 222 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r40142 r40146 163 163 164 164 /* Resize to 'golden ratio' */ 165 resizeToGoldenRatio( );165 resizeToGoldenRatio(1.2); 166 166 } 167 167
Note:
See TracChangeset
for help on using the changeset viewer.