VR-Forces Developer's Guide
 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 
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
A custom QLineEdit for suppressing key-release events. QLineEdit widgets normally consume key-press e...
Definition: DtLineEdit.h:40
A custom delegate for inserting a DtLineEdit editor in a Qt item view (e.g. a QTableView or QTreeView...
Definition: DtLineEdit.h:83
QList< int > myKeyList
Definition: DtLineEdit.h:76

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)