#include <QDockWidget>
#include <QString>
-#include <QTimer>
class QTextDocument;
namespace lyx {
+class BufferView;
class TexRow;
protected:
///
- void resizeEvent (QResizeEvent * event);
+ void resizeEvent (QResizeEvent * event) override;
public Q_SLOTS:
///
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
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.