VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCoreQt
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 <QtGui/QStyledItemDelegate>
16
#include <QtGui/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
40
class
DT_DLL_VRVCOREQT
DtLineEdit
:
public
QLineEdit
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
:
76
QList<int>
myKeyList
;
77
};
78
83
class
DT_DLL_VRVCOREQT
DtLineEditDelegate
:
public
QStyledItemDelegate
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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)