1 |
// qsamplerOptionsForm.cpp |
// qsamplerOptionsForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2009, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2010, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
133 |
QObject::connect(m_ui.MaxStreamsSpinBox, |
QObject::connect(m_ui.MaxStreamsSpinBox, |
134 |
SIGNAL(valueChanged(int)), |
SIGNAL(valueChanged(int)), |
135 |
SLOT(maxStreamsChanged(int))); |
SLOT(maxStreamsChanged(int))); |
136 |
QObject::connect(m_ui.OkPushButton, |
QObject::connect(m_ui.DialogButtonBox, |
137 |
SIGNAL(clicked()), |
SIGNAL(accepted()), |
138 |
SLOT(accept())); |
SLOT(accept())); |
139 |
QObject::connect(m_ui.CancelPushButton, |
QObject::connect(m_ui.DialogButtonBox, |
140 |
SIGNAL(clicked()), |
SIGNAL(rejected()), |
141 |
SLOT(reject())); |
SLOT(reject())); |
142 |
} |
} |
143 |
|
|
397 |
m_ui.MessagesLimitLinesSpinBox->setEnabled( |
m_ui.MessagesLimitLinesSpinBox->setEnabled( |
398 |
m_ui.MessagesLimitCheckBox->isChecked()); |
m_ui.MessagesLimitCheckBox->isChecked()); |
399 |
|
|
400 |
m_ui.OkPushButton->setEnabled(bValid); |
m_ui.DialogButtonBox->button(QDialogButtonBox::Ok)->setEnabled(bValid); |
401 |
} |
} |
402 |
|
|
403 |
|
|
455 |
QPalette pal; |
QPalette pal; |
456 |
pal.setColor(QPalette::Foreground, Qt::green); |
pal.setColor(QPalette::Foreground, Qt::green); |
457 |
if (bOn) { |
if (bOn) { |
458 |
QPixmap pm(":/icons/displaybg1.png"); |
QPixmap pm(":/images/displaybg1.png"); |
459 |
pal.setBrush(QPalette::Background, QBrush(pm)); |
pal.setBrush(QPalette::Background, QBrush(pm)); |
460 |
} else { |
} else { |
461 |
pal.setColor(QPalette::Background, Qt::black); |
pal.setColor(QPalette::Background, Qt::black); |