mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
plasma: build fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3f463fe412
commit
f905ee4420
3 changed files with 6 additions and 3 deletions
|
@ -58,7 +58,12 @@ void AniPaper::paint(QPainter *painter, const QRectF &exposedRect)
|
||||||
|
|
||||||
void AniPaper::slotTimeout()
|
void AniPaper::slotTimeout()
|
||||||
{
|
{
|
||||||
m_imagereader.jumpToNextImage();
|
const int nextimage = (m_imagereader.currentImageNumber() + 1);
|
||||||
|
if (nextimage > m_imagereader.imageCount()) {
|
||||||
|
m_imagereader.jumpToImage(0);
|
||||||
|
} else {
|
||||||
|
m_imagereader.jumpToImage(nextimage);
|
||||||
|
}
|
||||||
emit update(QRectF());
|
emit update(QRectF());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QImageReader>
|
#include <QImageReader>
|
||||||
#include <Plasma/Wallpaper>
|
#include <Plasma/Wallpaper>
|
||||||
#include <Plasma/DataEngine>
|
|
||||||
|
|
||||||
class AniPaper : public Plasma::Wallpaper
|
class AniPaper : public Plasma::Wallpaper
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <Plasma/Wallpaper>
|
#include <Plasma/Wallpaper>
|
||||||
#include <Plasma/DataEngine>
|
|
||||||
|
|
||||||
class XWallpaper : public Plasma::Wallpaper
|
class XWallpaper : public Plasma::Wallpaper
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue