--- qsampler/trunk/src/qsamplerOptionsForm.cpp 2007/11/01 19:25:10 1466 +++ qsampler/trunk/src/qsamplerOptionsForm.cpp 2007/11/05 19:07:26 1473 @@ -30,21 +30,22 @@ namespace QSampler { -OptionsForm::OptionsForm(QWidget* parent) : QDialog(parent) { - ui.setupUi(this); +OptionsForm::OptionsForm(QWidget* parent) : QDialog(parent) +{ + ui.setupUi(this); + + // No settings descriptor initially (the caller will set it). + m_pOptions = NULL; + + // Initialize dirty control state. + m_iDirtySetup = 0; + m_iDirtyCount = 0; - // No settings descriptor initially (the caller will set it). - m_pOptions = NULL; + // Set dialog validators... + ui.ServerPortComboBox->setValidator(new QIntValidator(ui.ServerPortComboBox)); - // Initialize dirty control state. - m_iDirtySetup = 0; - m_iDirtyCount = 0; - - // Set dialog validators... - ui.ServerPortComboBox->setValidator(new QIntValidator(ui.ServerPortComboBox)); - - // Try to restore old window positioning. - adjustSize(); + // Try to restore old window positioning. + adjustSize(); QObject::connect(ui.ServerHostComboBox, SIGNAL(textChanged(const QString&)), @@ -114,7 +115,8 @@ SLOT(reject())); } -OptionsForm::~OptionsForm() { +OptionsForm::~OptionsForm() +{ } // Populate (setup) dialog controls from settings descriptors.