void removeFromSequence();
protected Q_SLOTS:
bool event(QEvent* e);
- void keyPressEvent(QKeyEvent * e);
+ void keyPressEvent(QKeyEvent * e) override;
private:
void appendToSequence(QKeyEvent * e);
KeySequence keysequence_;
bool needBufferOpen() const override { return isBufferDependent(); }
//@}
/// Any dialog that overrides this method should make sure to call it.
- void closeEvent(QCloseEvent * ev);
+ void closeEvent(QCloseEvent * ev) override;
/// Any dialog that overrides this method should make sure to call it.
- void hideEvent(QHideEvent * ev);
+ void hideEvent(QHideEvent * ev) override;
protected Q_SLOTS:
void onBufferViewChanged() override {};
/// We don't want to restore geometry session for dock widgets.
void restoreSession() override {}
- void keyPressEvent(QKeyEvent * ev);
+ void keyPressEvent(QKeyEvent * ev) override;
/// Dialog inherited methods
//@{
protected:
virtual void resizeEvent(QResizeEvent *e);
- virtual void keyPressEvent(QKeyEvent *e);
+ virtual void keyPressEvent(QKeyEvent *e) override;
private:
void updateMargins();
//@}
///
- void showEvent(QShowEvent * e);
+ void showEvent(QShowEvent * e) override;
///
- void closeEvent(QCloseEvent * e);
+ void closeEvent(QCloseEvent * e) override;
/// prepares a call to GuiCitation::searchKeys when we
/// are ready to search the BibTeX entries
void findText(QString const & text, bool reset = false);
///
virtual bool event(QEvent * e);
///
- virtual void keyPressEvent(QKeyEvent * e);
+ virtual void keyPressEvent(QKeyEvent * e) override;
};
} // namespace frontend
GuiCompare(GuiView & lv);
~GuiCompare();
- void closeEvent(QCloseEvent *);
+ void closeEvent(QCloseEvent *) override;
private Q_SLOTS:
///
// A collectiong slot for QDialogButtonBox
void slotButtonBox(QAbstractButton *);
///
- void closeEvent(QCloseEvent * e);
+ void closeEvent(QCloseEvent * e) override;
protected Q_SLOTS:
void onBufferViewChanged() override {}
void changed();
private:
- void closeEvent(QCloseEvent *);
+ void closeEvent(QCloseEvent *) override;
void on_preambleTE_textChanged() { changed(); }
typedef std::map<BufferId, std::pair<int,int> > Coords;
private:
///
- void showEvent(QShowEvent *);
+ void showEvent(QShowEvent *) override;
///
void paramsToDialog();
///
bool eol_last_;
void levelChanged();
- void showEvent(QShowEvent*);
- void hideEvent(QHideEvent*);
+ void showEvent(QShowEvent*) override;
+ void hideEvent(QHideEvent*) override;
};
///
void gotoBookmark();
///
- void closeEvent(QCloseEvent * e);
+ void closeEvent(QCloseEvent * e) override;
///
bool isValid() override;
/// apply changes
void replaceallClicked();
private:
- void showEvent(QShowEvent * e);
+ void showEvent(QShowEvent * e) override;
///
bool initialiseParams(std::string const &) override { return true; }
void clearParams() override {}
void updateView() override;
void enableView(bool enable) override;
bool wantInitialFocus() const override { return false; }
- void closeEvent(QCloseEvent * event);
+ void closeEvent(QCloseEvent * event) override;
bool isClosing() const override { return is_closing_; }
public:
///
void fill();
///
- void showEvent(QShowEvent *);
+ void showEvent(QShowEvent *) override;
///
QList<Action *> actions_;
///
void dropEvent(QDropEvent * ev);
/// make sure we quit cleanly
- void closeEvent(QCloseEvent * e);
+ void closeEvent(QCloseEvent * e) override;
///
- void showEvent(QShowEvent *);
+ void showEvent(QShowEvent *) override;
/// in order to catch Tab key press.
bool event(QEvent * e);
void wheelEvent(QWheelEvent * ev);
/// key press event. It also knows how to handle ShortcutOverride events to
/// avoid code duplication.
- void keyPressEvent(QKeyEvent * ev);
+ void keyPressEvent(QKeyEvent * ev) override;
/// IM events
void inputMethodEvent(QInputMethodEvent * ev);
/// IM query
protected:
///
- void closeEvent(QCloseEvent * ev);
+ void closeEvent(QCloseEvent * ev) override;
///
- void hideEvent(QHideEvent *ev);
+ void hideEvent(QHideEvent *ev) override;
private:
/// Embedded Buffer.
void visible(bool);
protected:
- void showEvent(QShowEvent * event);
- void hideEvent(QHideEvent * event);
+ void showEvent(QShowEvent * event) override;
+ void hideEvent(QHideEvent * event) override;
void paintEvent(QPaintEvent * event);
private Q_SLOTS:
protected:
/// widget hidden
- void hideEvent(QHideEvent * event);
+ void hideEvent(QHideEvent * event) override;
private:
///
// this should return true if we have a "normal" cell, otherwise false.
// "normal" means without width set!
/// should all paragraphs be output with "Standard" layout?
- virtual bool allowParagraphCustomization(idx_type cell = 0) const;
+ virtual bool allowParagraphCustomization(idx_type cell = 0) const override;
///
- virtual bool forcePlainLayout(idx_type cell = 0) const;
+ virtual bool forcePlainLayout(idx_type cell = 0) const override;
///
void addPreview(DocIterator const & inset_pos,
graphics::PreviewLoader &) const override;
///
void htmlize(HtmlStream &) const override;
///
- void infoize2(odocstream & os) const;
+ void infoize2(odocstream & os) const override;
///
static bool isBigInsetDelim(docstring const &);
///
///
explicit InsetMathCancelto(Buffer * buf);
///
- bool idxUpDown(Cursor & cur, bool up) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
///
mode_type currentMode() const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void write(WriteStream & os) const override;
///
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void validate(LaTeXFeatures & features) const override;
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void normalize(NormalStream &) const override;
///
void htmlize(HtmlStream &) const override { }
///
- void infoize2(odocstream & os) const;
+ void infoize2(odocstream & os) const override;
///
InsetCode lyxCode() const override { return MATH_KERN_CODE; }
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void normalize(NormalStream &) const override;
///
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
docstring str() const { return str_; }
///
///
void draw(PainterInfo & pi, int x, int y) const override;
///
- bool idxUpDown(Cursor & cur, bool up) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
///
bool idxFirst(Cursor &) const override;
///
///
explicit InsetMathRoot(Buffer * buf);
///
- bool idxUpDown(Cursor & cur, bool up) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
///
bool idxForward(Cursor & cur) const;
///
- bool idxBackward(Cursor & cur) const;
+ bool idxBackward(Cursor & cur) const override;
///
bool idxFirst(Cursor &) const override;
///
/// move cursor up or down
bool idxUpDown(Cursor & cur, bool up) const override;
/// The index of the cell entered while moving backward
- size_type lastIdx() const { return 0; }
+ size_type lastIdx() const override { return 0; }
/// write LaTeX and Lyx code
void write(WriteStream & os) const override;
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void write(WriteStream & os) const override;
///
explicit InsetMathSqrt(Buffer * buf);
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
///
InsetMathStackrel(Buffer * buf, bool sub);
///
- bool idxUpDown(Cursor &, bool up) const;
+ bool idxUpDown(Cursor &, bool up) const override;
///
bool idxFirst(Cursor &) const override;
///
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
int kerning(BufferView const *) const override { return kerning_; }
///
void write(WriteStream & os) const override;
///
- void infoize2(odocstream & os) const;
+ void infoize2(odocstream & os) const override;
///
InsetCode lyxCode() const override { return MATH_SYMBOL_CODE; }