]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiViewSource.h
Hack to display section symbol
[lyx.git] / src / frontends / qt / GuiViewSource.h
index 48f2903b74dce98bddabcbf04b56799eeb8c1c43..f75978d34ee51492dfae1c29300ffd414b4bbf32 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <QDockWidget>
 #include <QString>
-#include <QTimer>
 
 
 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.