VirtualBox

Changeset 33824 in vbox


Ignore:
Timestamp:
Nov 8, 2010 8:55:06 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: 5315: Fixing incomplete check in New Hard Disk wizard.

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  
    242242    connect(m_pSizeSlider, SIGNAL(valueChanged(int)), this, SLOT(onSizeSliderValueChanged(int)));
    243243    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 &)));
    245244}
    246245
     
    347346    /* Update tooltip: */
    348347    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);
    351352    /* Notify wizard sub-system about complete status changed: */
    352353    emit completeChanged();
     
    359360    /* Update tooltip: */
    360361    updateSizeToolTip(m_uCurrentSize);
    361     /* Notify size-slider about size is changed but prevent callback: */
    362     blockSignals(true);
     362    /* Notify size-slider about size had changed preventing callback: */
     363    m_pSizeSlider->blockSignals(true);
    363364    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();
    365368}
    366369
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.h

    r33667 r33824  
    114114    UINewHDWzdPage3();
    115115
    116 signals:
    117 
    118     void sigToUpdateSizeEditor(const QString &strNewSize);
    119 
    120116protected:
    121117
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette