aboutsummaryrefslogtreecommitdiffstats
path: root/include/findwidget.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/findwidget.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/findwidget.h b/include/findwidget.h
index cd8602c7..e135b354 100644
--- a/include/findwidget.h
+++ b/include/findwidget.h
@@ -2,18 +2,13 @@
#ifndef FINDWIDGET_H
#define FINDWIDGET_H
-#include <include/GPG4USB.h>
-
#include "editorpage.h"
-#include <QWidget>
-
/**
* @brief Class for handling the find widget shown at buttom of a textedit-page
*/
-class FindWidget : public QWidget
-{
- Q_OBJECT
+class FindWidget : public QWidget {
+Q_OBJECT
public:
/**
@@ -24,7 +19,8 @@ public:
explicit FindWidget(QWidget *parent, QTextEdit *edit);
private:
- void keyPressEvent( QKeyEvent* e );
+ void keyPressEvent(QKeyEvent *e) override;
+
/**
* @details Set background of findEdit to red, if no match is found (Documents textcursor position equals -1),
* otherwise set it to white.
@@ -33,12 +29,17 @@ private:
QTextEdit *mTextpage; /** Textedit associated to the notification */
QLineEdit *findEdit; /** Label holding the text shown in verifyNotification */
- QTextCharFormat cursorFormat;
+ [[maybe_unused]] QTextCharFormat cursorFormat;
private slots:
+
void slotFindNext();
+
void slotFindPrevious();
+
void slotFind();
+
void slotClose();
};
+
#endif // FINDWIDGET_H