blob: d31fc353892b68ffc306e362f0c8e84883abe07f (
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
|
//-----------------------------------------------------------------------------
//
// 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() : TQWidget()
{
setFixedSize(600, 420);
}
protected:
virtual void keyPressEvent(TQKeyEvent *e)
{
if (e->ascii() == 'q')
{
kapp->quit();
}
}
};
#endif
|