aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/FindWidget.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-12 03:04:46 +0000
committerSaturneric <[email protected]>2022-01-12 03:04:46 +0000
commitd24f0251e8c8964bf42f4bf028023f02f4e96933 (patch)
treeb0d1fe016143274a66898ec6ca0913115400c033 /src/ui/FindWidget.h
parent<refactor>(ui): Adjust src/ui/function to src/ui/thread (diff)
downloadGpgFrontend-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.h8
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: