nightly (development)
latest release (v5.13.3)
5.13.3
5.13.2
5.13.1
5.13.0
5.12.1
5.12.0
5.11.2
5.11.1
5.11.0
5.10.2
5.10.1
5.10.0
5.9.1
5.9.0
5.8.1
5.8.0
5.7.0
5.6.2
5.5.2
C++
Python
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
f
g
i
l
m
n
p
q
r
s
t
v
w
+
Functions
c
g
l
m
n
p
q
r
s
t
v
+
Variables
_
l
m
q
v
Typedefs
Enumerations
+
Enumerator
a
c
g
l
m
n
p
q
r
s
t
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
g
i
l
m
n
p
q
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Related Functions
:
a
b
c
d
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
+
Typedefs
b
c
g
i
k
m
n
o
p
q
s
u
v
z
Enumerations
+
Enumerator
c
k
v
x
y
z
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Qt
Widgets
pqTextEdit.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqTextEdit_h
5
#define pqTextEdit_h
6
7
#include "
pqWidgetsModule.h
"
8
9
#include <QTextEdit>
10
11
class
pqTextEditPrivate;
12
class
pqWidgetCompleter
;
13
37
class
PQWIDGETS_EXPORT
pqTextEdit
:
public
QTextEdit
38
{
39
Q_OBJECT
40
typedef
QTextEdit Superclass;
41
42
public
:
43
pqTextEdit
(QWidget* parent =
nullptr
);
44
pqTextEdit
(
const
QString& contents, QWidget* parent =
nullptr
);
45
46
void
setCompleter(
pqWidgetCompleter
* completer);
47
pqWidgetCompleter
*
getCompleter
() {
return
this->Completer; }
48
49
~
pqTextEdit
()
override
;
50
51
Q_SIGNALS:
58
void
textChangedAndEditingFinished();
59
64
void
editingFinished();
65
66
private
Q_SLOTS:
67
void
onEditingFinished();
68
void
onTextEdited();
69
void
insertCompletion(
const
QString& completion);
70
71
protected
:
72
void
keyPressEvent(QKeyEvent* e)
override
;
73
void
focusOutEvent(QFocusEvent* e)
override
;
74
void
focusInEvent(QFocusEvent* e)
override
;
75
79
QString textUnderCursor()
const
;
80
84
void
updateCompleter();
85
90
void
updateCompleterIfVisible();
91
95
void
selectCompletion();
96
97
QScopedPointer<pqTextEditPrivate>
d_ptr
;
98
99
private
:
100
Q_DECLARE_PRIVATE(
pqTextEdit
);
101
Q_DISABLE_COPY(
pqTextEdit
);
102
103
pqWidgetCompleter
* Completer =
nullptr
;
104
};
105
106
#endif
pqWidgetsModule.h
pqWidgetCompleter
Abstact class for widget completers.
Definition:
pqWidgetCompleter.h:16
pqTextEdit::d_ptr
QScopedPointer< pqTextEditPrivate > d_ptr
Definition:
pqTextEdit.h:97
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
pqTextEdit::getCompleter
pqWidgetCompleter * getCompleter()
Definition:
pqTextEdit.h:47
pqTextEdit
pqTextEdit is a specialization of QTextEdit which provide editingFinished() and textChangedAndEditing...
Definition:
pqTextEdit.h:37
Generated by
1.8.13 on Wed Apr 23 2025