* test the prefix equiv at the right place
* prevent unecessary calls on setCustomGeometry by comparing the new and existing geom svn path=/trunk/KDE/kdelibs/; revision=1214252
This commit is contained in:
parent
fd0ad0eda2
commit
e3ab2c5924
@ -85,6 +85,10 @@ FocusIndicator::~FocusIndicator()
|
|||||||
|
|
||||||
void FocusIndicator::setCustomGeometry(const QRectF &geometry)
|
void FocusIndicator::setCustomGeometry(const QRectF &geometry)
|
||||||
{
|
{
|
||||||
|
if (m_customGeometry == geometry) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_customGeometry = geometry;
|
m_customGeometry = geometry;
|
||||||
syncGeometry();
|
syncGeometry();
|
||||||
}
|
}
|
||||||
@ -102,14 +106,15 @@ void FocusIndicator::setCustomPrefix(const QString &prefix)
|
|||||||
m_prefix.prepend(m_customPrefix);
|
m_prefix.prepend(m_customPrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_prefix == was) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_testPrefix = m_customPrefix % "hover";
|
m_testPrefix = m_customPrefix % "hover";
|
||||||
if (m_prefix.isEmpty()) {
|
if (m_prefix.isEmpty()) {
|
||||||
m_prefix = m_customPrefix % "shadow";
|
m_prefix = m_customPrefix % "shadow";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_prefix == was) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
syncGeometry();
|
syncGeometry();
|
||||||
resizeEvent(0);
|
resizeEvent(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user