- Timestamp:
- Nov 9, 2010 3:40:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67565
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r33882 r33909 190 190 layout->addWidget (mTabWidget); 191 191 192 /* Load port data: */ 193 ulong uCount = vboxGlobal().virtualBox().GetSystemProperties().GetSerialPortCount(); 194 /* Apply internal variables data to QWidget(s): */ 195 for (ulong iSlot = 0; iSlot < uCount; ++iSlot) 196 { 197 /* Creating port's page: */ 198 UIMachineSettingsSerial *pPage = new UIMachineSettingsSerial; 199 200 /* Attach port's page to Tab Widget: */ 201 mTabWidget->addTab(pPage, pPage->pageTitle()); 202 203 } 204 192 205 /* Applying language settings */ 193 206 retranslateUi(); … … 236 249 QWidget *pLastFocusWidget = mTabWidget->focusProxy(); 237 250 251 ulong uCount = qMin(mTabWidget->count(), m_cache.m_items.size()); 238 252 /* Apply internal variables data to QWidget(s): */ 239 for ( int iSlot = 0; iSlot < m_cache.m_items.size(); ++iSlot)240 { 241 /* Creating port's page: */242 UIMachineSettingsSerial *pPage = new UIMachineSettingsSerial;253 for (ulong iSlot = 0; iSlot < uCount; ++iSlot) 254 { 255 /* Getting adapter's page: */ 256 UIMachineSettingsSerial *pPage = qobject_cast<UIMachineSettingsSerial*>(mTabWidget->widget(iSlot)); 243 257 244 258 /* Loading port's data into page: */ 245 259 pPage->fetchPortData(m_cache.m_items[iSlot]); 246 247 /* Attach port's page to Tab Widget: */248 mTabWidget->addTab(pPage, pPage->pageTitle());249 260 250 261 /* Setup page validation: */
Note:
See TracChangeset
for help on using the changeset viewer.