aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/FindWidget.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 09:10:53 +0000
committerSaturneric <[email protected]>2022-01-23 09:10:53 +0000
commit0dd16d72d75e2068b8365a49ef2696a4744575dd (patch)
treea463727ba5a5ee4d5afcfb0eaa4d8e6e48b7c930 /src/ui/FindWidget.h
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.tar.gz
GpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up ui.
Diffstat (limited to '')
-rw-r--r--src/ui/FindWidget.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/src/ui/FindWidget.h b/src/ui/FindWidget.h
index 985cd26f..dfe50f9c 100644
--- a/src/ui/FindWidget.h
+++ b/src/ui/FindWidget.h
@@ -48,27 +48,50 @@ class FindWidget : public QWidget {
*/
explicit FindWidget(QWidget* parent, PlainTextEditorPage* edit);
- private:
+ protected:
+ /**
+ * @brief
+ *
+ * @param e
+ */
void keyPressEvent(QKeyEvent* e) override;
+ private:
/**
* @details Set background of findEdit to red, if no match is found (Documents
* textcursor position equals -1), otherwise set it to white.
*/
- void setBackground();
+ void set_background();
- PlainTextEditorPage* mTextpage; /** Textedit associated to the notification */
- QLineEdit* findEdit; /** Label holding the text shown in infoBoard */
+ PlainTextEditorPage*
+ m_text_page_; ///< Textedit associated to the notification
+ QLineEdit* find_edit_; ///< Label holding the text shown in infoBoard
private slots:
- void slotFindNext();
+ /**
+ * @brief
+ *
+ */
+ void slot_find_next();
- void slotFindPrevious();
+ /**
+ * @brief
+ *
+ */
+ void slot_find_previous();
- void slotFind();
+ /**
+ * @brief
+ *
+ */
+ void slot_find();
- void slotClose();
+ /**
+ * @brief
+ *
+ */
+ void slot_close();
};
} // namespace GpgFrontend::UI