49 |
adjustSize(); |
adjustSize(); |
50 |
|
|
51 |
QObject::connect(ui.ServerHostComboBox, |
QObject::connect(ui.ServerHostComboBox, |
52 |
SIGNAL(textChanged(const QString&)), |
SIGNAL(editTextChanged(const QString&)), |
53 |
SLOT(optionsChanged())); |
SLOT(optionsChanged())); |
54 |
QObject::connect(ui.ServerPortComboBox, |
QObject::connect(ui.ServerPortComboBox, |
55 |
SIGNAL(textChanged(const QString&)), |
SIGNAL(editTextChanged(const QString&)), |
56 |
SLOT(optionsChanged())); |
SLOT(optionsChanged())); |
57 |
QObject::connect(ui.ServerTimeoutSpinBox, |
QObject::connect(ui.ServerTimeoutSpinBox, |
58 |
SIGNAL(valueChanged(int)), |
SIGNAL(valueChanged(int)), |
61 |
SIGNAL(stateChanged(int)), |
SIGNAL(stateChanged(int)), |
62 |
SLOT(optionsChanged())); |
SLOT(optionsChanged())); |
63 |
QObject::connect(ui.ServerCmdLineComboBox, |
QObject::connect(ui.ServerCmdLineComboBox, |
64 |
SIGNAL(textChanged(const QString&)), |
SIGNAL(editTextChanged(const QString&)), |
65 |
SLOT(optionsChanged())); |
SLOT(optionsChanged())); |
66 |
QObject::connect(ui.StartDelaySpinBox, |
QObject::connect(ui.StartDelaySpinBox, |
67 |
SIGNAL(valueChanged(int)), |
SIGNAL(valueChanged(int)), |
152 |
|
|
153 |
// Load Display options... |
// Load Display options... |
154 |
QFont font; |
QFont font; |
155 |
|
QPalette pal; |
156 |
|
|
157 |
// Display font. |
// Display font. |
158 |
if (m_pOptions->sDisplayFont.isEmpty() || !font.fromString(m_pOptions->sDisplayFont)) |
if (m_pOptions->sDisplayFont.isEmpty() || !font.fromString(m_pOptions->sDisplayFont)) |
172 |
// Messages font. |
// Messages font. |
173 |
if (m_pOptions->sMessagesFont.isEmpty() || !font.fromString(m_pOptions->sMessagesFont)) |
if (m_pOptions->sMessagesFont.isEmpty() || !font.fromString(m_pOptions->sMessagesFont)) |
174 |
font = QFont("Fixed", 8); |
font = QFont("Fixed", 8); |
175 |
|
pal = ui.MessagesFontTextLabel->palette(); |
176 |
|
pal.setColor(QPalette::Background, Qt::white); |
177 |
|
ui.MessagesFontTextLabel->setPalette(pal); |
178 |
ui.MessagesFontTextLabel->setFont(font); |
ui.MessagesFontTextLabel->setFont(font); |
179 |
ui.MessagesFontTextLabel->setText(font.family() + " " + QString::number(font.pointSize())); |
ui.MessagesFontTextLabel->setText(font.family() + ' ' + QString::number(font.pointSize())); |
180 |
|
|
181 |
// Messages limit option. |
// Messages limit option. |
182 |
ui.MessagesLimitCheckBox->setChecked(m_pOptions->bMessagesLimit); |
ui.MessagesLimitCheckBox->setChecked(m_pOptions->bMessagesLimit); |
329 |
QPalette pal; |
QPalette pal; |
330 |
pal.setColor(QPalette::Foreground, Qt::green); |
pal.setColor(QPalette::Foreground, Qt::green); |
331 |
if (bOn) { |
if (bOn) { |
332 |
QPixmap pm(":/qsampler/pixmaps/displaybg1.png"); |
QPixmap pm(":/icons/displaybg1.png"); |
333 |
pal.setBrush(QPalette::Background, QBrush(pm)); |
pal.setBrush(QPalette::Background, QBrush(pm)); |
334 |
} else { |
} else { |
335 |
pal.setColor(QPalette::Background, Qt::black); |
pal.setColor(QPalette::Background, Qt::black); |