X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiViewSource.h;h=f75978d34ee51492dfae1c29300ffd414b4bbf32;hb=5cb80b867f4a59c3253487652ba74a29ad5b3f0f;hp=48f2903b74dce98bddabcbf04b56799eeb8c1c43;hpb=c293be56bd12c5dc46e5cedd2828e33918fccef7;p=lyx.git diff --git a/src/frontends/qt/GuiViewSource.h b/src/frontends/qt/GuiViewSource.h index 48f2903b74..f75978d34e 100644 --- a/src/frontends/qt/GuiViewSource.h +++ b/src/frontends/qt/GuiViewSource.h @@ -21,7 +21,6 @@ #include #include -#include class QTextDocument; @@ -29,6 +28,7 @@ class QTextDocument; namespace lyx { +class BufferView; class TexRow; @@ -55,7 +55,7 @@ public: protected: /// - void resizeEvent (QResizeEvent * event); + void resizeEvent (QResizeEvent * event) override; public Q_SLOTS: /// @@ -79,7 +79,7 @@ private: void getContent(BufferView const & view, Buffer::OutputWhat output, docstring & str, std::string const & format, bool master); /// Grab double clicks on the viewport - bool eventFilter(QObject * obj, QEvent * event); + bool eventFilter(QObject * obj, QEvent * event) override; /// QTextDocument * document_; /// LaTeX syntax highlighter @@ -100,26 +100,26 @@ public: GuiViewSource( GuiView & parent, ///< the main window where to dock. Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer) - Qt::WindowFlags flags = 0); + Qt::WindowFlags flags = {}); /// Controller inherited method. ///@{ - bool initialiseParams(std::string const & source); - void clearParams() {} - void dispatchParams() {} - bool isBufferDependent() const { return true; } - bool canApply() const { return true; } - bool canApplyToReadOnly() const { return true; } - void updateView(); - void enableView(bool enable); - void saveSession(QSettings & settings) const; - void restoreSession(); - bool wantInitialFocus() const { return false; } + bool initialiseParams(std::string const & source) override; + void clearParams() override {} + void dispatchParams() override {} + bool isBufferDependent() const override { return true; } + bool canApply() const override { return true; } + bool canApplyToReadOnly() const override { return true; } + void updateView() override; + void enableView(bool enable) override; + void saveSession(QSettings & settings) const override; + void restoreSession() override; + bool wantInitialFocus() const override { return false; } ///@} public Q_SLOTS: /// - void onBufferViewChanged();//override + void onBufferViewChanged() override; private Q_SLOTS: /// The title displayed by the dialog reflects source type.