summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/TableDialog.h
blob: 2257a81f96cae9c330cd9beb20727c3e74c2c231 (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
#ifndef __TABLEDIALOG_H
#define __TABLEDIALOG_H

#include <qdialog.h>
#include <qtextview.h>
#include <qlayout.h>

class CTableDialog : public QDialog
{
Q_OBJECT
#ifndef USEQPE
    void keyPressEvent(QKeyEvent* e)
	{
	    switch (e->key())
	    {
		case Key_Escape:
		    e->accept();
		    reject();
		    break;
		case Key_Space:
		case Key_Return:
		    e->accept();
		    accept();
		    break;
		default:
		    QWidget::keyPressEvent(e);
	    }
	}
#endif
 public:
 CTableDialog(const QFont& f, const QString& tabtext, bool fs = true, QWidget* parent = 0, const char* name = 0);
 ~CTableDialog() {}
};
#endif // CPREFS_H