kcanvasrootpixmap.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "kcanvasrootpixmap.h"
00021
00022 #include <qcanvas.h>
00023
00024
00025 KCanvasRootPixmap::KCanvasRootPixmap(QCanvasView *view, const char *name)
00026 : KRootPixmap(view, name), _view(view)
00027 {
00028 setCustomPainting(true);
00029 connect(this, SIGNAL(backgroundUpdated(const QPixmap &)),
00030 SLOT(backgroundUpdatedSlot(const QPixmap &)));
00031 }
00032
00033 void KCanvasRootPixmap::backgroundUpdatedSlot(const QPixmap &pixmap)
00034 {
00035 if ( _view && _view->canvas() )
00036 _view->canvas()->setBackgroundPixmap(pixmap);
00037 }
00038
00039 #include "kcanvasrootpixmap.moc"
This file is part of the documentation for libkdegames Library Version 3.4.2.