summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/demowin.h
blob: b6b86275296ba5932aaeaa2287807cdbeabd6249 (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 <klocale.h>
#include <tdeconfig.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