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

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

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

revision 3823 by capela, Thu Sep 17 16:34:38 2020 UTC revision 3824 by capela, Sat Sep 26 18:49:03 2020 UTC
# Line 527  bool PaletteForm::namedPalette ( Line 527  bool PaletteForm::namedPalette (
527          QSettings *settings, const QString& name, QPalette& pal, bool fixup )          QSettings *settings, const QString& name, QPalette& pal, bool fixup )
528  {  {
529          int result = 0;          int result = 0;
530  #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)  #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         uint mask = pal.resolveMask();  
 #else  
531          uint mask = pal.resolve();          uint mask = pal.resolve();
532  #endif  #endif
533    
# Line 592  bool PaletteForm::namedPalette ( Line 590  bool PaletteForm::namedPalette (
590                  pal.setColor(QPalette::Active,   QPalette::LinkVisited, QColor(64, 128, 255));                  pal.setColor(QPalette::Active,   QPalette::LinkVisited, QColor(64, 128, 255));
591                  pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(64, 128, 255));                  pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(64, 128, 255));
592                  pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(54, 76, 119));                  pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(54, 76, 119));
593            #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
594                  mask = 0;                  mask = 0;
595            #endif
596                  ++result;                  ++result;
597          }          }
598          else          else
# Line 654  bool PaletteForm::namedPalette ( Line 654  bool PaletteForm::namedPalette (
654                  pal.setColor(QPalette::Active,   QPalette::LinkVisited, QColor(230, 100, 230));                  pal.setColor(QPalette::Active,   QPalette::LinkVisited, QColor(230, 100, 230));
655                  pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(230, 100, 230));                  pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(230, 100, 230));
656                  pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(74, 34, 74));                  pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(74, 34, 74));
657            #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
658                  mask = 0;                  mask = 0;
659            #endif
660                  ++result;                  ++result;
661          }          }
662          else          else
# Line 672  bool PaletteForm::namedPalette ( Line 674  bool PaletteForm::namedPalette (
674                                  pal.setColor(QPalette::Active,   cr, QColor(clist.at(0)));                                  pal.setColor(QPalette::Active,   cr, QColor(clist.at(0)));
675                                  pal.setColor(QPalette::Inactive, cr, QColor(clist.at(1)));                                  pal.setColor(QPalette::Inactive, cr, QColor(clist.at(1)));
676                                  pal.setColor(QPalette::Disabled, cr, QColor(clist.at(2)));                                  pal.setColor(QPalette::Disabled, cr, QColor(clist.at(2)));
677                            #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
678                                  mask &= ~(1 << int(cr));                                  mask &= ~(1 << int(cr));
679                            #endif
680                                  ++result;                                  ++result;
681                          }                          }
682                  }                  }
# Line 711  bool PaletteForm::namedPalette ( Line 715  bool PaletteForm::namedPalette (
715                  ++result;                  ++result;
716          }          }
717    
718  #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)  #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         pal.setResolveMask(mask);  
 #else  
719          pal.resolve(mask);          pal.resolve(mask);
720  #endif  #endif
721          return (result > 0);          return (result > 0);

Legend:
Removed from v.3823  
changed lines
  Added in v.3824

  ViewVC Help
Powered by ViewVC