QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #include <QtDesigner/QDesignerExportWidget>
29 
34 class QCADGUI_EXPORT RShortcutLineEdit: public QLineEdit {
35 
36 Q_OBJECT
37 
38 public:
39  RShortcutLineEdit(QWidget* parent);
40 
41 public slots:
42  virtual void clear();
43 
44 protected:
45  bool eventFilter(QObject *obj, QEvent *event);
46 
47 private:
48  int translateModifiers(Qt::KeyboardModifiers state, const QString &text);
49 
50 private:
51  int m_key[4];
52  int m_keyNum;
53 };
54 
56 
57 #endif /* RSHORTCUTLINEEDIT_H_ */