Changeset 3947 in vbox for trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui.h
- Timestamp:
- Jul 31, 2007 6:03:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui.h
r3138 r3947 65 65 teSummary->setReadOnly (TRUE); 66 66 teSummary->setPaper (pageSummary->backgroundBrush()); 67 ltSummary->insertWidget ( 1, teSummary);67 ltSummary->insertWidget (2, teSummary); 68 68 69 69 /* setup connections and set validation for pages … … 88 88 89 89 /* setup minimum width for the sizeHint to be calculated correctly */ 90 int wid = widthSpacer->minimumSize().width() ;90 int wid = widthSpacer->minimumSize().width() + 50; 91 91 txWelcome->setMinimumWidth (wid); 92 92 txType->setMinimumWidth (wid); … … 94 94 txSummaryHdr->setMinimumWidth (wid); 95 95 txSummaryFtr->setMinimumWidth (wid); 96 txWelcomeHD->setMinimumWidth (wid); 97 txTypeHD->setMinimumWidth (wid); 98 txSourceHD->setMinimumWidth (wid); 99 txSummaryHdrHD->setMinimumWidth (wid); 100 txSummaryFtrHD->setMinimumWidth (wid); 96 101 97 102 /* media page */ … … 101 106 102 107 103 void VBoxVMFirstRunWzd::setup ( CMachine &aMachine)108 void VBoxVMFirstRunWzd::setup (const CMachine &aMachine) 104 109 { 105 110 machine = aMachine; 111 112 CHardDiskAttachmentEnumerator en = machine.GetHardDiskAttachments().Enumerate(); 113 if (en.HasMore()) 114 { 115 txWelcomeHD->setHidden (true); 116 txTypeHD->setHidden (true); 117 txSourceHD->setHidden (true); 118 txSummaryHdrHD->setHidden (true); 119 txSummaryFtrHD->setHidden (true); 120 } 121 else 122 { 123 txWelcome->setHidden (true); 124 txType->setHidden (true); 125 txSource->setHidden (true); 126 txSummaryHdr->setHidden (true); 127 txSummaryFtr->setHidden (true); 128 } 106 129 } 107 130
Note:
See TracChangeset
for help on using the changeset viewer.