X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=rotatingbackground.cpp;fp=rotatingbackground.cpp;h=b7e99a34ae279c9f052d2bb939b36113b71253b3;hb=172a6626f6f1cd6445fc575e2d614a1821596900;hp=13da33b6cd8812fd453da274a47568677fdfde88;hpb=ce11375f70d5fcfe5e7a8b3c58dd4ce2d99e983b;p=fapman diff --git a/rotatingbackground.cpp b/rotatingbackground.cpp index 13da33b..b7e99a3 100644 --- a/rotatingbackground.cpp +++ b/rotatingbackground.cpp @@ -28,6 +28,7 @@ RotatingBackground::RotatingBackground(QWidget *parent) : void RotatingBackground::loadWallpaper() { + /* QString loadfile = "/home/user/.backgrounds/background-1.png"; QFileInfo custombg("/root/.fapman/wallpaper.png"); bool custom = false; @@ -35,6 +36,8 @@ void RotatingBackground::loadWallpaper() loadfile = "/root/.fapman/wallpaper.png"; custom = true; } + */ + QString loadfile = "/root/.fapman/wallpaper.png"; iWallpaperLandscape.load(loadfile); if( !iWallpaperLandscape.isNull() ) { @@ -43,6 +46,7 @@ void RotatingBackground::loadWallpaper() iWallpaperPortrait = iWallpaperLandscape.transformed(t); } + /* if( !custom && !iWallpaperLandscape.isNull() && !iWallpaperPortrait.isNull() ) { QPainter l( &iWallpaperLandscape ); @@ -58,6 +62,7 @@ void RotatingBackground::loadWallpaper() l.drawRect( 0, 0, iWallpaperLandscape.rect().width(), iWallpaperLandscape.rect().height() ); p.drawRect( 0, 0, iWallpaperPortrait.rect().width(), iWallpaperPortrait.rect().height() ); } + */ } void RotatingBackground::paintEvent(QPaintEvent *)