diff --git a/effects/showfps/showfps.cpp b/effects/showfps/showfps.cpp
index a6898363e0..0439941b23 100644
--- a/effects/showfps/showfps.cpp
+++ b/effects/showfps/showfps.cpp
@@ -31,6 +31,7 @@ along with this program. If not, see .
#include
#endif
+#include
#include
#include
#include
@@ -47,6 +48,7 @@ ShowFpsEffect::ShowFpsEffect()
: paints_pos(0)
, frames_pos(0)
, fpsText(0)
+ , m_noBenchmark(effects->effectFrame(EffectFrameUnstyled, false))
{
for (int i = 0;
i < NUM_PAINTS;
@@ -58,6 +60,8 @@ ShowFpsEffect::ShowFpsEffect()
i < MAX_FPS;
++i)
frames[ i ] = 0;
+ m_noBenchmark->setAlignment(Qt::AlignTop | Qt::AlignRight);
+ m_noBenchmark->setText(i18n("This effect is not a benchmark"));
reconfigure(ReconfigureAll);
}
@@ -76,6 +80,7 @@ void ShowFpsEffect::reconfigure(ReconfigureFlags)
else if (y < 0)
y = displayHeight() - MAX_TIME - y;
fps_rect = QRect(x, y, FPS_WIDTH + 2 * NUM_PAINTS, MAX_TIME);
+ m_noBenchmark->setPosition(fps_rect.bottomRight() + QPoint(-6, 6));
int textPosition = ShowFpsConfig::textPosition();
textFont = ShowFpsConfig::textFont();
@@ -164,6 +169,7 @@ void ShowFpsEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data)
XSync(display(), False); // make sure all rendering is done
}
#endif
+ m_noBenchmark->render(infiniteRegion(), 1.0, alpha);
}
void ShowFpsEffect::paintGL(int fps)
diff --git a/effects/showfps/showfps.h b/effects/showfps/showfps.h
index 65d9a3f69e..5f46d0c5d5 100644
--- a/effects/showfps/showfps.h
+++ b/effects/showfps/showfps.h
@@ -99,6 +99,7 @@ private:
QColor textColor;
QRect fpsTextRect;
int textAlign;
+ QScopedPointer m_noBenchmark;
};
} // namespace