diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-17 03:06:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:17 -0400 |
| commit | 491b96c0528159f0830e439f5c5a55e3ff09ad1a (patch) | |
| tree | 1543da31b7b73166d50b24047fc9b1b04e8fc2bf /src/texteditor.h | |
| parent | 0084ca6c4c1fad76dafe700aad3db4fdb5ef2750 (diff) | |
made TextEditorToolbar a widget
added save and word wrap icons
Diffstat (limited to 'src/texteditor.h')
| -rw-r--r-- | src/texteditor.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/texteditor.h b/src/texteditor.h index 0f7447ff..eef5ca52 100644 --- a/src/texteditor.h +++ b/src/texteditor.h @@ -5,18 +5,15 @@ class TextEditor; -class TextEditorToolbar : public QObject +class TextEditorToolbar : public QFrame { Q_OBJECT; public: TextEditorToolbar(TextEditor& editor); - QWidget* widget(); - private: TextEditor& m_editor; - QWidget* m_widget; QAction* m_save; QAction* m_wordWrap; @@ -122,7 +119,7 @@ protected: void resizeEvent(QResizeEvent* e) override; private: - TextEditorToolbar m_toolbar; + TextEditorToolbar* m_toolbar; TextEditorLineNumbers* m_lineNumbers; TextEditorHighlighter* m_highlighter; QColor m_highlightBackground; |
