30 |
|
|
31 |
namespace QSampler { |
namespace QSampler { |
32 |
|
|
33 |
OptionsForm::OptionsForm(QWidget* parent) : QDialog(parent) { |
OptionsForm::OptionsForm(QWidget* parent) : QDialog(parent) |
34 |
ui.setupUi(this); |
{ |
35 |
|
ui.setupUi(this); |
36 |
|
|
37 |
|
// No settings descriptor initially (the caller will set it). |
38 |
|
m_pOptions = NULL; |
39 |
|
|
40 |
|
// Initialize dirty control state. |
41 |
|
m_iDirtySetup = 0; |
42 |
|
m_iDirtyCount = 0; |
43 |
|
|
44 |
// No settings descriptor initially (the caller will set it). |
// Set dialog validators... |
45 |
m_pOptions = NULL; |
ui.ServerPortComboBox->setValidator(new QIntValidator(ui.ServerPortComboBox)); |
46 |
|
|
47 |
// Initialize dirty control state. |
// Try to restore old window positioning. |
48 |
m_iDirtySetup = 0; |
adjustSize(); |
|
m_iDirtyCount = 0; |
|
|
|
|
|
// Set dialog validators... |
|
|
ui.ServerPortComboBox->setValidator(new QIntValidator(ui.ServerPortComboBox)); |
|
|
|
|
|
// Try to restore old window positioning. |
|
|
adjustSize(); |
|
49 |
|
|
50 |
QObject::connect(ui.ServerHostComboBox, |
QObject::connect(ui.ServerHostComboBox, |
51 |
SIGNAL(textChanged(const QString&)), |
SIGNAL(textChanged(const QString&)), |
115 |
SLOT(reject())); |
SLOT(reject())); |
116 |
} |
} |
117 |
|
|
118 |
OptionsForm::~OptionsForm() { |
OptionsForm::~OptionsForm() |
119 |
|
{ |
120 |
} |
} |
121 |
|
|
122 |
// Populate (setup) dialog controls from settings descriptors. |
// Populate (setup) dialog controls from settings descriptors. |