~ubuntu-branches/ubuntu/raring/koffice/raring

« back to all changes in this revision

Viewing changes to krita/plugins/filters/colors/kis_wdg_color_to_alpha.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-06 15:30:09 UTC
  • mfrom: (0.13.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101206153009-yf0dqbp9l7fzwxi8
Tags: 1:2.2.91-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
{
38
38
    m_widget = new Ui_WdgColorToAlphaBase();
39
39
    m_widget->setupUi(this);
40
 
    connect(m_widget->colorTarget, SIGNAL(changed(const QColor&)), SIGNAL(sigConfigurationItemChanged()));
 
40
    connect(m_widget->colorSelector, SIGNAL(colorChanged(const QColor&)), SIGNAL(sigConfigurationItemChanged()));
41
41
    connect(m_widget->intThreshold, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));
42
42
}
43
43
 
50
50
{
51
51
    QVariant value;
52
52
    if (config->getProperty("targetcolor", value)) {
53
 
        m_widget->colorTarget->setColor(value.value<QColor>());
 
53
        m_widget->colorSelector->setQColor(value.value<QColor>());
54
54
    }
55
55
    if (config->getProperty("threshold", value)) {
56
56
        m_widget->intThreshold->setValue(value.toInt());
60
60
KisPropertiesConfiguration* KisWdgColorToAlpha::configuration() const
61
61
{
62
62
    KisFilterConfiguration* config = new KisFilterConfiguration("colortoalpha", 1);
63
 
    config->setProperty("targetcolor", widget()->colorTarget->color());
 
63
    config->setProperty("targetcolor", widget()->colorSelector->color());
64
64
    config->setProperty("threshold", widget()->intThreshold->value());
65
65
    return config;
66
66
}