/[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 3793 by capela, Tue Mar 31 11:06:16 2020 UTC revision 3794 by capela, Tue Jun 16 09:13:12 2020 UTC
# Line 226  void OptionsForm::setup ( Options *pOpti Line 226  void OptionsForm::setup ( Options *pOpti
226                  || !font.fromString(m_pOptions->sMessagesFont))                  || !font.fromString(m_pOptions->sMessagesFont))
227                  font = QFont("Monospace", 8);                  font = QFont("Monospace", 8);
228          pal = m_ui.MessagesFontTextLabel->palette();          pal = m_ui.MessagesFontTextLabel->palette();
229          pal.setColor(QPalette::Background, pal.base().color());          pal.setColor(QPalette::Window, pal.base().color());
230          m_ui.MessagesFontTextLabel->setPalette(pal);          m_ui.MessagesFontTextLabel->setPalette(pal);
231          m_ui.MessagesFontTextLabel->setFont(font);          m_ui.MessagesFontTextLabel->setFont(font);
232          m_ui.MessagesFontTextLabel->setText(font.family()          m_ui.MessagesFontTextLabel->setText(font.family()
# Line 498  void OptionsForm::chooseMessagesFont (vo Line 498  void OptionsForm::chooseMessagesFont (vo
498  void OptionsForm::toggleDisplayEffect ( bool bOn )  void OptionsForm::toggleDisplayEffect ( bool bOn )
499  {  {
500          QPalette pal;          QPalette pal;
501          pal.setColor(QPalette::Foreground, Qt::green);          pal.setColor(QPalette::WindowText, Qt::green);
502          if (bOn) {          if (bOn) {
503                  QPixmap pm(":/images/displaybg1.png");                  QPixmap pm(":/images/displaybg1.png");
504                  pal.setBrush(QPalette::Background, QBrush(pm));                  pal.setBrush(QPalette::Window, QBrush(pm));
505          } else {          } else {
506                  pal.setColor(QPalette::Background, Qt::black);                  pal.setColor(QPalette::Window, Qt::black);
507          }          }
508          m_ui.DisplayFontTextLabel->setPalette(pal);          m_ui.DisplayFontTextLabel->setPalette(pal);
509    

Legend:
Removed from v.3793  
changed lines
  Added in v.3794

  ViewVC Help
Powered by ViewVC