~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/plugins/filters/blur/kis_wdg_blur.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    m_widget->setupUi(this);
43
43
    linkSpacingToggled(true);
44
44
 
45
 
    connect(widget()->bnLinkSize, SIGNAL(toggled(bool)), this, SLOT(linkSpacingToggled(bool)));
 
45
    connect(widget()->aspectButton, SIGNAL(keepAspectRatioChanged(bool)), this, SLOT(linkSpacingToggled(bool)));
46
46
    connect(widget()->intHalfWidth, SIGNAL(valueChanged(int)), this, SLOT(spinBoxHalfWidthChanged(int)));
47
47
    connect(widget()->intHalfHeight, SIGNAL(valueChanged(int)), this, SLOT(spinBoxHalfHeightChanged(int)));
48
48
 
54
54
KisPropertiesConfiguration* KisWdgBlur::configuration() const
55
55
{
56
56
    KisFilterConfiguration* config = new KisFilterConfiguration("blur", 1);
 
57
    config->setProperty("lockAspect", widget()->aspectButton->keepAspectRatio());
57
58
    config->setProperty("halfWidth", widget()->intHalfWidth->value());
58
59
    config->setProperty("halfHeight", widget()->intHalfHeight->value());
59
60
    config->setProperty("rotate", widget()->intAngle->value());
65
66
void KisWdgBlur::setConfiguration(const KisPropertiesConfiguration* config)
66
67
{
67
68
    QVariant value;
 
69
    if (config->getProperty("lockAspect", value)) {
 
70
        m_widget->aspectButton->setKeepAspectRatio(value.toBool());
 
71
    }
68
72
    if (config->getProperty("shape", value)) {
69
73
        widget()->cbShape->setCurrentIndex(value.toUInt());
70
74
    }
85
89
void KisWdgBlur::linkSpacingToggled(bool b)
86
90
{
87
91
    m_halfSizeLink = b;
88
 
    KoImageResource kir;
89
 
    if (b) {
90
 
        widget()->bnLinkSize->setIcon(QIcon(kir.chain()));
91
 
    } else {
92
 
        widget()->bnLinkSize->setIcon(QIcon(kir.chainBroken()));
93
 
    }
 
92
    widget()->intHalfHeight->setValue(widget()->intHalfWidth->value());
94
93
}
95
94
 
96
95
void KisWdgBlur::spinBoxHalfWidthChanged(int v)