libkdegames Library API Documentation

kcanvasrootpixmap.cpp

00001 #include "kcanvasrootpixmap.h"
00002 
00003 #include <qcanvas.h>
00004 
00005 
00006 KCanvasRootPixmap::KCanvasRootPixmap(QCanvasView *view, const char *name)
00007     : KRootPixmap(view, name), _view(view)
00008 {
00009     setCustomPainting(true);
00010     connect(this, SIGNAL(backgroundUpdated(const QPixmap &)),
00011             SLOT(backgroundUpdatedSlot(const QPixmap &)));
00012 }
00013 
00014 void KCanvasRootPixmap::backgroundUpdatedSlot(const QPixmap &pixmap)
00015 {
00016     if ( _view && _view->canvas() )
00017         _view->canvas()->setBackgroundPixmap(pixmap);
00018 }
00019 
00020 #include "kcanvasrootpixmap.moc"
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 10:06:36 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003