Changeset 33824 in vbox
- Timestamp:
- Nov 8, 2010 8:55:06 AM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.cpp
r33667 r33824 242 242 connect(m_pSizeSlider, SIGNAL(valueChanged(int)), this, SLOT(onSizeSliderValueChanged(int))); 243 243 connect(m_pSizeEditor, SIGNAL(textChanged(const QString &)), this, SLOT(onSizeEditorTextChanged(const QString &))); 244 connect(this, SIGNAL(sigToUpdateSizeEditor(const QString &)), m_pSizeEditor, SLOT(setText(const QString &)));245 244 } 246 245 … … 347 346 /* Update tooltip: */ 348 347 updateSizeToolTip(m_uCurrentSize); 349 /* Notify size-editor about size is changed: */ 350 emit sigToUpdateSizeEditor(vboxGlobal().formatSize(m_uCurrentSize)); 348 /* Notify size-editor about size had changed preventing callback: */ 349 m_pSizeEditor->blockSignals(true); 350 m_pSizeEditor->setText(vboxGlobal().formatSize(m_uCurrentSize)); 351 m_pSizeEditor->blockSignals(false); 351 352 /* Notify wizard sub-system about complete status changed: */ 352 353 emit completeChanged(); … … 359 360 /* Update tooltip: */ 360 361 updateSizeToolTip(m_uCurrentSize); 361 /* Notify size-slider about size is changed but preventcallback: */362 blockSignals(true);362 /* Notify size-slider about size had changed preventing callback: */ 363 m_pSizeSlider->blockSignals(true); 363 364 m_pSizeSlider->setValue(sizeMBToSlider(m_uCurrentSize, m_iSliderScale)); 364 blockSignals(false); 365 m_pSizeSlider->blockSignals(false); 366 /* Notify wizard sub-system about complete status changed: */ 367 emit completeChanged(); 365 368 } 366 369 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.h
r33667 r33824 114 114 UINewHDWzdPage3(); 115 115 116 signals:117 118 void sigToUpdateSizeEditor(const QString &strNewSize);119 120 116 protected: 121 117
Note:
See TracChangeset
for help on using the changeset viewer.