summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/demowin.h
blob: c20f5495a49e8f4aa18b2bc4679f1a7371d748ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 <tdelocale.h>
#include <tdeconfig.h>
#include <kstandarddirs.h>
#include <tdeapplication.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