~ubuntu-branches/ubuntu/maverick/digikam/maverick

« back to all changes in this revision

Viewing changes to imageplugins/adjustlevels/adjustlevelstool.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luka Renko
  • Date: 2009-03-17 23:07:56 UTC
  • mfrom: (1.2.20 upstream) (3.1.4 experimental)
  • Revision ID: james.westby@ubuntu.com-20090317230756-db5b8rqjwb2j35e5
Tags: 2:0.10.0-1ubuntu1
* Remaining changes to Debian (committed to Debian SVN):
  - Depends: kde-icons-oxygen dropped (included through kdelibs)
  - Recommends: kipi-plugins added (provides major functionality)
  - debian/digikamthemedesigner.manpage: add missing manpage
* Remaning change to Debian:
  - Section: devel for -dbg package (no debug in Jaunty)

Show diffs side-by-side

added added

removed removed

Lines of Context:
584
584
    KSharedConfig::Ptr config = KGlobal::config();
585
585
    KConfigGroup group        = config->group("adjustlevels Tool");
586
586
 
587
 
    m_gboxSettings->histogramBox()->setChannel(group.readEntry("Histogram Channel",
588
 
                    (int)EditorToolSettings::LuminosityChannel));
589
 
    m_gboxSettings->histogramBox()->setScale(group.readEntry("Histogram Scale",
590
 
                    (int)HistogramWidget::LogScaleHistogram));
591
 
 
592
587
    for (int i = 0 ; i < 5 ; i++)
593
588
    {
594
589
        bool sb        = m_originalImage->sixteenBit();
609
604
    m_levelsHistogramWidget->reset();
610
605
    m_gboxSettings->histogramBox()->histogram()->reset();
611
606
 
 
607
    m_gboxSettings->histogramBox()->setChannel(group.readEntry("Histogram Channel",
 
608
                    (int)EditorToolSettings::LuminosityChannel));
 
609
    m_gboxSettings->histogramBox()->setScale(group.readEntry("Histogram Scale",
 
610
                    (int)HistogramWidget::LogScaleHistogram));
 
611
 
612
612
    // This is mandatory here to set spinbox values because slot connections
613
613
    // can be not set completely at plugin startup.
614
614
    m_minInput->setValue(m_levels->getLevelLowInputValue(m_gboxSettings->histogramBox()->channel()));