Source Code (Use browser search to find items of interest.)

Class Index

kdesktop'MyApplication (./kdebase/kdesktop/kdmdesktop.h:11)

class MyApplication : public KApplication
{
  Q_OBJECT

public:
 
  MyApplication();


private slots:

  void renderDone();

private:
  
  KBackgroundRenderer renderer;

};


kdesktop'MyApplication::MyApplication() (./kdebase/kdesktop/kdmdesktop.cpp:25)

MyApplication::MyApplication()
  : KApplication(), renderer(0, new KSimpleConfig(locate("config", "kdmdesktoprc")))
{
  connect(&renderer, SIGNAL(imageDone(int)), this, SLOT(renderDone()));
  renderer.start();
}



kdesktop'MyApplication::renderDone() (./kdebase/kdesktop/kdmdesktop.cpp:33)

void MyApplication::renderDone()
{
  QPixmap pm;
  pm.convertFromImage(*renderer.image());
  desktop()->setBackgroundPixmap(pm);
  quit();
}