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"
This file is part of the documentation for libkdegames Library Version 3.2.2.