Qt
Components
pqOneLinerTextEdit.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 pqOneLinerTextEdit_h
5
#define pqOneLinerTextEdit_h
6
7
#include "
pqComponentsModule.h
"
8
#include "
pqTextEdit.h
"
9
18
class
PQCOMPONENTS_EXPORT
pqOneLinerTextEdit
:
public
pqTextEdit
19
{
20
Q_OBJECT
21
typedef
pqTextEdit
Superclass
;
22
23
public
:
24
pqOneLinerTextEdit
(QWidget* parent =
nullptr
);
25
~
pqOneLinerTextEdit
()
override
=
default
;
26
27
protected
:
31
void
keyPressEvent
(QKeyEvent* e)
override
;
32
37
void
resizeEvent(QResizeEvent* e)
override
;
38
44
void
insertFromMimeData(
const
QMimeData*
source
)
override
;
45
46
protected
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
50
void
adjustToText();
51
52
private
:
53
Q_DISABLE_COPY(
pqOneLinerTextEdit
)
54
};
55
56
#endif
pqComponentsModule.h
PQCOMPONENTS_EXPORT
#define PQCOMPONENTS_EXPORT
Definition:
pqComponentsModule.h:15
pqOneLinerTextEdit
pqOneLinerTextEdit is a specialization of pqTextEdit to handle one-liner expressions.
Definition:
pqOneLinerTextEdit.h:18
source
source
pqTextEdit
pqTextEdit is a specialization of QTextEdit which provide editingFinished() and textChangedAndEditing...
Definition:
pqTextEdit.h:37
pqTextEdit.h
pqTextEdit::keyPressEvent
void keyPressEvent(QKeyEvent *e) override
Generated by
1.8.13 on Tue Oct 1 2024