From 8b2aa1b5301ab60368a03e36df4ff5216726e87d Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kscreensaver/xsavers/demowin.h | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 kscreensaver/xsavers/demowin.h (limited to 'kscreensaver/xsavers/demowin.h') 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 +#endif + +#include +#include +#include +#include +#include +#include + +//---------------------------------------------------------------------------- + +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 + -- cgit v1.2.1