QCAD
Open Source 2D CAD
RShortcutLineEdit.h
Go to the documentation of this file.
1 
20 #ifndef RSHORTCUTLINEEDIT_H_
21 #define RSHORTCUTLINEEDIT_H_
22 
23 #include "gui_global.h"
24 
25 #include <QMetaType>
26 #include <QEvent>
27 #include <QLineEdit>
28 
33 class QCADGUI_EXPORT RShortcutLineEdit: public QLineEdit {
34 
35 Q_OBJECT
36 
37 public:
38  RShortcutLineEdit(QWidget* parent);
39 
40 public slots:
41  virtual void clear();
42 
43 protected:
44  bool eventFilter(QObject *obj, QEvent *event);
45 
46 private:
47  int translateModifiers(Qt::KeyboardModifiers state, const QString &text);
48 
49 private:
50  int m_key[4];
51  int m_keyNum;
52 };
53 
55 
56 #endif /* RSHORTCUTLINEEDIT_H_ */
#define QCADGUI_EXPORT
Definition: gui_global.h:10
int m_keyNum
Definition: RShortcutLineEdit.h:51
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RShortcutLineEdit.h:33