Warning--

This commit is contained in:
Montel Laurent 2011-04-30 13:17:26 +02:00
parent 9a6cf6f136
commit c0a47ae1dd

View file

@ -285,6 +285,7 @@ void StartupFeedbackEffect::gotNewStartup(const KStartupInfoId& id, const KStart
void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KStartupInfoData& data) void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KStartupInfoData& data)
{ {
Q_UNUSED( data )
m_startups.remove(id); m_startups.remove(id);
if (m_startups.count() == 0) { if (m_startups.count() == 0) {
m_currentStartup = KStartupInfoId(); // null m_currentStartup = KStartupInfoId(); // null
@ -394,7 +395,7 @@ QRect StartupFeedbackEffect::feedbackRect() const
else else
xDiff = 32 + 7; xDiff = 32 + 7;
int yDiff = xDiff; int yDiff = xDiff;
GLTexture* texture; GLTexture* texture = 0;
int yOffset = 0; int yOffset = 0;
switch(m_type) { switch(m_type) {
case BouncingFeedback: case BouncingFeedback:
@ -410,7 +411,9 @@ QRect StartupFeedbackEffect::feedbackRect() const
break; break;
} }
const QPoint cursorPos = effects->cursorPos() + QPoint(xDiff, yDiff + yOffset); const QPoint cursorPos = effects->cursorPos() + QPoint(xDiff, yDiff + yOffset);
const QRect rect(cursorPos, texture->size()); QRect rect;
if( texture )
rect = QRect(cursorPos, texture->size());
return rect; return rect;
} }