You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
757 B
46 lines
757 B
15 years ago
|
//-----------------------------------------------------------------------------
|
||
|
//
|
||
|
// 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>
|
||
|
|
||
|
//----------------------------------------------------------------------------
|
||
|
|
||
13 years ago
|
class DemoWindow : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
15 years ago
|
DemoWindow() : TQWidget()
|
||
15 years ago
|
{
|
||
|
setFixedSize(600, 420);
|
||
|
}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
virtual void keyPressEvent(TQKeyEvent *e)
|
||
15 years ago
|
{
|
||
|
if (e->ascii() == 'q')
|
||
|
{
|
||
|
kapp->quit();
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|