VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLineEdit.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
14 
15 #include <QtWidgets/QStyledItemDelegate>
16 #include <QtWidgets/QLineEdit>
17 
18 #include <QtCore/QList>
19 
20 class QFocusEvent;
21 class QKeyEvent;
22 class QModelIndex;
23 class QString;
24 class QStyleOptionViewItem;
25 
26 
27 namespace makVrv
28 {
29 
41  {
42  Q_OBJECT
43 
44  public:
48  DtLineEdit(QWidget* parent = 0);
49 
54  DtLineEdit(const QString& contents, QWidget* parent = 0);
55 
57  virtual ~DtLineEdit();
58 
59  protected:
63  virtual void keyPressEvent(QKeyEvent* event);
64 
68  virtual void keyReleaseEvent(QKeyEvent* event);
69 
73  virtual void focusOutEvent(QFocusEvent* event);
74 
75  protected:
77  };
78 
84  {
85  Q_OBJECT
86 
87  public:
91  DtLineEditDelegate(QObject* parent = 0);
92 
94  virtual ~DtLineEditDelegate();
95 
96  protected:
104  virtual QWidget* createEditor(QWidget* parent,
105  const QStyleOptionViewItem& option, const QModelIndex& index) const;
106  };
107 
108 }
109 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)