correctly sync with parent geometry

svn path=/trunk/KDE/kdelibs/; revision=1037755
This commit is contained in:
Marco Martin 2009-10-19 22:19:04 +00:00
parent b2bb69732a
commit ed950edc24

View File

@ -47,6 +47,7 @@ FocusIndicator::FocusIndicator(QGraphicsWidget *parent)
parent->installEventFilter(this); parent->installEventFilter(this);
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncGeometry())); connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncGeometry()));
syncGeometry();
} }
FocusIndicator::~FocusIndicator() FocusIndicator::~FocusIndicator()
@ -100,7 +101,7 @@ void FocusIndicator::syncGeometry()
if (!m_customGeometry.isNull()) { if (!m_customGeometry.isNull()) {
geom = m_customGeometry; geom = m_customGeometry;
} else { } else {
geom = boundingRect(); geom = m_parent->boundingRect();
} }
qreal left, top, right, bottom; qreal left, top, right, bottom;