blob: a7ba69c7ff2a936a45a1f45bbfd142c04c5f41bc (
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
|
//
// C++ Interface: shortcutcapturedialog
//
// Description:
// Dialog window for capturing keyboard shortcuts
//
// Author: Mathias Lundgren <lunar_shuttle@users.sourceforge.net>, (C) 2003
//
// Copyright: Mathias Lundgren (lunar_shuttle@users.sourceforge.net) (C) 2003
//
//
#include "shortcuts.h"
#include "filedialog.h"
#include "ui_shortcutcapturedialogbase.h"
class QKeyEvent;
class ShortcutCaptureDialog : public QDialog, public Ui::ShortcutCaptureDialogBase
{
Q_OBJECT
private:
int shortcutindex;
void keyPressEvent(QKeyEvent* e);
int key;
private slots:
void apply();
void cancel() { reject(); };
public:
ShortcutCaptureDialog(QWidget* parent, int index=0);
~ShortcutCaptureDialog();
};
|