diff options
author | Saturneric <[email protected]> | 2022-01-12 03:04:46 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-12 03:04:46 +0000 |
commit | d24f0251e8c8964bf42f4bf028023f02f4e96933 (patch) | |
tree | b0d1fe016143274a66898ec6ca0913115400c033 /src/ui/FindWidget.h | |
parent | <refactor>(ui): Adjust src/ui/function to src/ui/thread (diff) | |
download | GpgFrontend-d24f0251e8c8964bf42f4bf028023f02f4e96933.tar.gz GpgFrontend-d24f0251e8c8964bf42f4bf028023f02f4e96933.zip |
<refactor, feat>(ui): Text editor improvements.
1. Add binary display mode
2. Add information bar
3. Added character code recognition function.
4. Identify text encoding and line breaks
5. Count the number of characters
6. Code reconstruction
Diffstat (limited to 'src/ui/FindWidget.h')
-rw-r--r-- | src/ui/FindWidget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/FindWidget.h b/src/ui/FindWidget.h index e4cbdaab..bc412012 100644 --- a/src/ui/FindWidget.h +++ b/src/ui/FindWidget.h @@ -26,7 +26,7 @@ #define FINDWIDGET_H #include "ui/GpgFrontendUI.h" -#include "ui/widgets/EditorPage.h" +#include "ui/widgets/PlainTextEditorPage.h" namespace GpgFrontend::UI { @@ -42,7 +42,7 @@ class FindWidget : public QWidget { * * @param parent The parent widget */ - explicit FindWidget(QWidget* parent, QTextEdit* edit); + explicit FindWidget(QWidget* parent, PlainTextEditorPage* edit); private: void keyPressEvent(QKeyEvent* e) override; @@ -53,8 +53,8 @@ class FindWidget : public QWidget { */ void setBackground(); - QTextEdit* mTextpage; /** Textedit associated to the notification */ - QLineEdit* findEdit; /** Label holding the text shown in infoBoard */ + PlainTextEditorPage* mTextpage; /** Textedit associated to the notification */ + QLineEdit* findEdit; /** Label holding the text shown in infoBoard */ private slots: |