From 3780c1baab8562e15eade1c1be25ccebd0e70814 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Wed, 2 Feb 2022 14:47:24 +0800 Subject: (ui): Repair and tidy the signal and slot docking 1. Use more modern ways. 2. Repair partial docking. --- src/ui/widgets/TextEdit.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/ui/widgets/TextEdit.h') diff --git a/src/ui/widgets/TextEdit.h b/src/ui/widgets/TextEdit.h index e5b6b0ed..cb32bfb2 100644 --- a/src/ui/widgets/TextEdit.h +++ b/src/ui/widgets/TextEdit.h @@ -221,50 +221,52 @@ class TextEdit : public QWidget { */ void slot_remove_tab(int index); + public slots: + /** * @details Cut selected text in current text page. */ - void slot_cut() const; + void SlotCut() const; /** * @details Copy selected text of current text page to clipboard. */ - void slot_copy() const; + void SlotCopy() const; /** * @details Paste text from clipboard to current text page. */ - void slot_paste() const; + void SlotPaste() const; /** * @details Undo last change in current textpage. * */ - void slot_undo() const; + void SlotUndo() const; /** * @brief redo last change in current text page * */ - void slot_redo() const; + void SlotRedo() const; /** * @brief * */ - void slot_zoom_in() const; + void SlotZoomIn() const; /** * @brief * */ - void slot_zoom_out() const; + void SlotZoomOut() const; /** * @brief select all in current text page * */ - void slot_select_all() const; + void SlotSelectAll() const; protected: /** -- cgit v1.2.3