diff options
Diffstat (limited to 'kscreensaver/xsavers/demowin.h')
-rw-r--r-- | kscreensaver/xsavers/demowin.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/kscreensaver/xsavers/demowin.h b/kscreensaver/xsavers/demowin.h new file mode 100644 index 00000000..327b61dc --- /dev/null +++ b/kscreensaver/xsavers/demowin.h @@ -0,0 +1,44 @@ +//----------------------------------------------------------------------------- +// +// Screen savers for KDE +// +// Copyright (c) Martin R. Jones 1999 +// + +#ifndef __DEMOWIN_H__ +#define __DEMOWIN_H__ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <stdio.h> +#include <stdlib.h> +#include <klocale.h> +#include <kconfig.h> +#include <kstandarddirs.h> +#include <kapplication.h> + +//---------------------------------------------------------------------------- + +class DemoWindow : public QWidget +{ + Q_OBJECT +public: + DemoWindow() : QWidget() + { + setFixedSize(600, 420); + } + +protected: + virtual void keyPressEvent(QKeyEvent *e) + { + if (e->ascii() == 'q') + { + kapp->quit(); + } + } +}; + +#endif + |