diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
commit | 7e09b5c2efae58399621a938de26b9675b8ba621 (patch) | |
tree | de2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/xsavers/demowin.h | |
parent | 159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff) | |
download | tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/xsavers/demowin.h')
-rw-r--r-- | tdescreensaver/xsavers/demowin.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tdescreensaver/xsavers/demowin.h b/tdescreensaver/xsavers/demowin.h new file mode 100644 index 00000000..6a09b7c3 --- /dev/null +++ b/tdescreensaver/xsavers/demowin.h @@ -0,0 +1,45 @@ +//----------------------------------------------------------------------------- +// +// 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 TQWidget +{ + Q_OBJECT + +public: + DemoWindow() : TQWidget() + { + setFixedSize(600, 420); + } + +protected: + virtual void keyPressEvent(TQKeyEvent *e) + { + if (e->ascii() == 'q') + { + kapp->quit(); + } + } +}; + +#endif + |