- if (i->graphicsEffect()) {
- QGraphicsBlurEffect *blur = static_cast <QGraphicsBlurEffect *>(i->graphicsEffect());
- if (blur) {
- effect_list->setCurrentIndex(effect_list->findData((int) BLUREFFECT));
- int rad = (int) blur->blurRadius();
- blur_radius->setValue(rad);
- effect_stack->setHidden(false);
- } else {
- QGraphicsDropShadowEffect *shad = static_cast <QGraphicsDropShadowEffect *>(i->graphicsEffect());
- if (shad) {
- effect_list->setCurrentIndex(effect_list->findData((int) SHADOWEFFECT));
- shadow_radius->setValue(shad->blurRadius());
- shadow_x->setValue(shad->xOffset());
- shadow_y->setValue(shad->yOffset());
- effect_stack->setHidden(false);
- }
- }
- } else {
- effect_list->setCurrentIndex(effect_list->findData((int) NOEFFECT));
- effect_stack->setHidden(true);
- }
+ if (i->graphicsEffect()) {
+ QGraphicsBlurEffect *blur = static_cast <QGraphicsBlurEffect *>(i->graphicsEffect());
+ if (blur) {
+ effect_list->setCurrentIndex(effect_list->findData((int) BLUREFFECT));
+ int rad = (int) blur->blurRadius();
+ blur_radius->setValue(rad);
+ effect_stack->setHidden(false);
+ } else {
+ QGraphicsDropShadowEffect *shad = static_cast <QGraphicsDropShadowEffect *>(i->graphicsEffect());
+ if (shad) {
+ effect_list->setCurrentIndex(effect_list->findData((int) SHADOWEFFECT));
+ shadow_radius->setValue(shad->blurRadius());
+ shadow_x->setValue(shad->xOffset());
+ shadow_y->setValue(shad->yOffset());
+ effect_stack->setHidden(false);
+ }
+ }
+ } else {
+ effect_list->setCurrentIndex(effect_list->findData((int) NOEFFECT));
+ effect_stack->setHidden(true);
+ }