/[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 2028 by capela, Wed Nov 4 18:59:57 2009 UTC revision 2107 by capela, Sat Jul 10 09:47:33 2010 UTC
# Line 1  Line 1 
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
# Line 133  OptionsForm::OptionsForm ( QWidget* pPar Line 133  OptionsForm::OptionsForm ( QWidget* pPar
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    
# Line 397  void OptionsForm::stabilizeForm (void) Line 397  void OptionsForm::stabilizeForm (void)
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    
# Line 455  void OptionsForm::toggleDisplayEffect ( Line 455  void OptionsForm::toggleDisplayEffect (
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);

Legend:
Removed from v.2028  
changed lines
  Added in v.2107

  ViewVC Help
Powered by ViewVC