/[svn]/qsampler/trunk/src/qsamplerOptionsForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerOptionsForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1499 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1504 by capela, Wed Nov 21 11:46:40 2007 UTC
# Line 49  OptionsForm::OptionsForm(QWidget* parent Line 49  OptionsForm::OptionsForm(QWidget* parent
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)),
# Line 61  OptionsForm::OptionsForm(QWidget* parent Line 61  OptionsForm::OptionsForm(QWidget* parent
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)),
# Line 152  void OptionsForm::setup ( qsamplerOption Line 152  void OptionsForm::setup ( qsamplerOption
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))
# Line 171  void OptionsForm::setup ( qsamplerOption Line 172  void OptionsForm::setup ( qsamplerOption
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);
# Line 325  void OptionsForm::toggleDisplayEffect ( Line 329  void OptionsForm::toggleDisplayEffect (
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);

Legend:
Removed from v.1499  
changed lines
  Added in v.1504

  ViewVC Help
Powered by ViewVC