~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to utilities/queuemanager/basetools/enhance/antivignetting.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
{
47
47
 
48
48
AntiVignetting::AntiVignetting(QObject* parent)
49
 
              : BatchTool("AntiVignetting", EnhanceTool, parent)
 
49
    : BatchTool("AntiVignetting", EnhanceTool, parent)
50
50
{
51
51
    setToolTitle(i18n("Anti-Vignetting"));
52
52
    setToolDescription(i18n("A tool to remove/add vignetting to photograph."));
76
76
    prm.insert("outerradius",   (double)defaultPrm.outerradius);
77
77
    prm.insert("xshift",        (double)defaultPrm.xshift);
78
78
    prm.insert("yshift",        (double)defaultPrm.yshift);
79
 
    
 
79
 
80
80
    return prm;
81
81
}
82
82
 
111
111
 
112
112
bool AntiVignetting::toolOperations()
113
113
{
114
 
    if (!loadToDImg()) return false;
 
114
    if (!loadToDImg())
 
115
    {
 
116
        return false;
 
117
    }
115
118
 
116
119
    AntiVignettingContainer prm;
117
120
    prm.addvignetting = settings()["addvignetting"].toBool();