The Tablet class provides a user interface panel for building and evaluating string-based expressions interactively.
More...
#include <Tablet.h>
|
void | setResult (const QString &v) |
| Sets the result text shown in the result display area.
|
|
void | append_outlayer (const QString &what) |
| Appends an external string token to the internal expression.
|
|
void | process_clear () |
| Clears the internal expression and updates the UI.
|
|
void | process_chop () |
| Removes the last character or token from the expression.
|
|
void | process_evaluate () |
| Evaluates the current expression and updates the result.
|
|
|
| Tablet (QWidget *parent=nullptr) |
| Constructs the Tablet widget.
|
|
| ~Tablet () |
| Destructor.
|
|
The Tablet class provides a user interface panel for building and evaluating string-based expressions interactively.
This widget allows appending tokens, clearing input, and evaluating mathematical or textual expressions via UI interaction.
◆ Tablet()
Tablet::Tablet |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructs the Tablet widget.
- Parameters
-
parent | The parent QWidget, if any. |
◆ append_outlayer
void Tablet::append_outlayer |
( |
const QString & |
what | ) |
|
|
slot |
Appends an external string token to the internal expression.
- Parameters
-
◆ setResult
void Tablet::setResult |
( |
const QString & |
v | ) |
|
|
slot |
Sets the result text shown in the result display area.
- Parameters
-
v | The result string to display. |
The documentation for this class was generated from the following files:
- builtin/app/Caculator/ui/Tablet.h
- builtin/app/Caculator/ui/Tablet.cpp