NegaMage

krita staticWorkingColorSpace diff

Mar 17th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.40 KB | None | 0 0
  1. diff --git a/libs/ui/dialogs/kis_dlg_preferences.cc b/libs/ui/dialogs/kis_dlg_preferences.cc
  2. index f0b3afaddd..7560124ee2 100644
  3. --- a/libs/ui/dialogs/kis_dlg_preferences.cc
  4. +++ b/libs/ui/dialogs/kis_dlg_preferences.cc
  5. @@ -76,7 +76,7 @@
  6.  #include "kis_color_manager.h"
  7.  #include "KisProofingConfiguration.h"
  8.  #include "kis_image_config.h"
  9. -
  10. +#include <QDebug>
  11.  #include "slider_and_spin_box_sync.h"
  12.  
  13.  // for the performance update
  14. @@ -1688,7 +1688,10 @@ bool KisDlgPreferences::editPreferences()
  15.              }
  16.          }
  17.          cfg.setWorkingColorSpace(m_colorSettings->m_page->cmbWorkingColorSpace->currentItem().id());
  18. -
  19. +        // cfg.setWorkingColorSpace(cfg.readEntry("workingColorSpace", "RGBA"));
  20. +        qDebug()<<"==================";
  21. +        qDebug()<<"Current Color space"<<cfg.readEntry("workingColorSpace", "RGBA");
  22. +        qDebug()<<"==================";
  23.          KisImageConfig cfgImage(false);
  24.          cfgImage.setDefaultProofingConfig(m_colorSettings->m_page->proofingSpaceSelector->currentColorSpace(),
  25.                                            m_colorSettings->m_page->cmbProofingIntent->currentIndex(),
  26. diff --git a/libs/ui/kis_config.cc b/libs/ui/kis_config.cc
  27. index 42c75f1f1f..c56bfc04ed 100644
  28. --- a/libs/ui/kis_config.cc
  29. +++ b/libs/ui/kis_config.cc
  30. @@ -580,7 +580,7 @@ QString KisConfig::workingColorSpace(bool defaultValue) const
  31.  void KisConfig::setWorkingColorSpace(const QString & workingColorSpace) const
  32.  {  
  33.      qDebug()<<"===========";
  34. -    qDebug()<<"Call to set working color space from "<< m_cfg.readEntry("workingColorSpace", "RGBA")) <<" to "<<WorkingColorSpace;
  35. +    qDebug()<<"Call to set working color space from "<< m_cfg.readEntry("workingColorSpace", "RGBA");
  36.      qDebug()<<"===========";
  37.      m_cfg.writeEntry("workingColorSpace", workingColorSpace);
  38.  }
  39. diff --git a/libs/ui/kis_config.h b/libs/ui/kis_config.h
  40. index 7a637c0752..a2d14205e0 100644
  41. --- a/libs/ui/kis_config.h
  42. +++ b/libs/ui/kis_config.h
  43. @@ -145,7 +145,7 @@ public:
  44.      /// the custom monitor profile set by the user, depending on the configuration
  45.      const KoColorProfile *displayProfile(int screen) const;
  46.  
  47. -    QString workingColorSpace(bool defaultValue = false) const;
  48. +    static QString workingColorSpace(bool defaultValue = false) const;
  49.      void setWorkingColorSpace(const QString & workingColorSpace) const;
  50.  
  51.      QString importProfile(bool defaultValue = false) const;
Add Comment
Please, Sign In to add comment