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 
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
#define PQCOMPONENTS_EXPORT
pqOneLinerTextEdit is a specialization of pqTextEdit to handle one-liner expressions.
source
pqTextEdit is a specialization of QTextEdit which provide editingFinished() and textChangedAndEditing...
Definition: pqTextEdit.h:37
void keyPressEvent(QKeyEvent *e) override