//----------------------------------------------------------------------------- // // Screen savers for KDE // // Copyright (c) Martin R. Jones 1999 // #ifndef __DEMOWIN_H__ #define __DEMOWIN_H__ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include //---------------------------------------------------------------------------- class DemoWindow : public QWidget { Q_OBJECT public: DemoWindow() : TQWidget() { setFixedSize(600, 420); } protected: virtual void keyPressEvent(TQKeyEvent *e) { if (e->ascii() == 'q') { kapp->quit(); } } }; #endif