Changeset View
Changeset View
Standalone View
Standalone View
widgets/imagelib/effects/kpEffectEmbossWidget.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | kpEffectEmbossWidget::kpEffectEmbossWidget (bool actOnSelection, | 44 | kpEffectEmbossWidget::kpEffectEmbossWidget (bool actOnSelection, | ||
45 | QWidget *parent) | 45 | QWidget *parent) | ||
46 | : kpEffectWidgetBase (actOnSelection, parent) | 46 | : kpEffectWidgetBase (actOnSelection, parent) | ||
47 | { | 47 | { | ||
48 | QGridLayout *lay = new QGridLayout (this); | 48 | QGridLayout *lay = new QGridLayout (this); | ||
49 | lay->setMargin (0); | 49 | lay->setMargin (0); | ||
50 | 50 | | |||
51 | 51 | | |||
52 | #if 0 | | |||
53 | QLabel *amountLabel = new QLabel (i18n ("&Amount:"), this); | | |||
54 | m_amountInput = new kpIntNumInput (this); | | |||
55 | m_amountInput->setRange (kpEffectEmboss::MinStrength, | | |||
56 | kpEffectEmboss::MaxStrength, 1/*step*/, true/*slider*/); | | |||
57 | m_amountInput->setSpecialValueText (i18n ("None")); | | |||
58 | | ||||
59 | | ||||
60 | amountLabel->setBuddy (m_amountInput); | | |||
61 | | ||||
62 | | ||||
63 | lay->addWidget (amountLabel, 0, 0); | | |||
64 | lay->addWidget (m_amountInput, 0, 1); | | |||
65 | | ||||
66 | lay->setColumnStretch (1, 1); | | |||
67 | | ||||
68 | | ||||
69 | connect (m_amountInput, &kpIntNumInput::valueChanged, | | |||
70 | this, &kpEffectEmbossWidget::settingsChanged); | | |||
71 | #endif | | |||
72 | | ||||
73 | m_enableCheckBox = new QCheckBox (i18n ("E&nable"), this); | 52 | m_enableCheckBox = new QCheckBox (i18n ("E&nable"), this); | ||
74 | 53 | | |||
75 | 54 | | |||
76 | lay->addWidget (m_enableCheckBox, 0, 0, 1, 2, Qt::AlignCenter); | 55 | lay->addWidget (m_enableCheckBox, 0, 0, 1, 2, Qt::AlignCenter); | ||
77 | 56 | | |||
78 | 57 | | |||
79 | // (settingsChangedDelayed() instead of settingsChanged() so that the | 58 | // (settingsChangedDelayed() instead of settingsChanged() so that the | ||
80 | // user can quickly press OK to apply effect to document directly and | 59 | // user can quickly press OK to apply effect to document directly and | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |