SyntaxTutor
Educational app designed to help compiler students understand LL(1) and SLR(1) parsing algorithms.
Loading...
Searching...
No Matches
customtextedit.h
Go to the documentation of this file.
1
/*
2
* SyntaxTutor - Interactive Tutorial About Syntax Analyzers
3
* Copyright (C) 2025 Jose R. (jose-rzm)
4
*
5
* This program is free software: you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef CUSTOMTEXTEDIT_H
20
#define CUSTOMTEXTEDIT_H
21
22
#include <QTextEdit>
23
24
class
CustomTextEdit
:
public
QTextEdit {
25
Q_OBJECT
26
public
:
27
explicit
CustomTextEdit
(QWidget* parent =
nullptr
);
28
29
signals:
30
void
sendRequested
();
31
32
protected
:
33
void
keyPressEvent
(QKeyEvent* event)
override
;
34
};
35
36
#endif
// CUSTOMTEXTEDIT_H
CustomTextEdit::CustomTextEdit
CustomTextEdit(QWidget *parent=nullptr)
Definition
customtextedit.cpp:22
CustomTextEdit::sendRequested
void sendRequested()
CustomTextEdit::keyPressEvent
void keyPressEvent(QKeyEvent *event) override
Definition
customtextedit.cpp:24
customtextedit.h
Generated by
1.14.0