]> git.lyx.org Git - lyx.git/commitdiff
Amend efc0877f
authorYuriy Skalko <yuriy.skalko@gmail.com>
Sat, 3 Oct 2020 12:42:14 +0000 (15:42 +0300)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 3 Oct 2020 19:17:17 +0000 (21:17 +0200)
35 files changed:
src/frontends/qt/CustomizedWidgets.h
src/frontends/qt/DialogView.h
src/frontends/qt/DockView.h
src/frontends/qt/FancyLineEdit.h
src/frontends/qt/GuiCitation.h
src/frontends/qt/GuiCommandEdit.h
src/frontends/qt/GuiCompare.h
src/frontends/qt/GuiDialog.h
src/frontends/qt/GuiDocument.h
src/frontends/qt/GuiErrorList.h
src/frontends/qt/GuiProgressView.h
src/frontends/qt/GuiRef.h
src/frontends/qt/GuiSearch.h
src/frontends/qt/GuiToc.h
src/frontends/qt/GuiToolbar.h
src/frontends/qt/GuiView.h
src/frontends/qt/GuiWorkArea.h
src/frontends/qt/IconPalette.h
src/frontends/qt/PanelStack.h
src/insets/InsetTabular.h
src/mathed/InsetMathBig.h
src/mathed/InsetMathCancelto.h
src/mathed/InsetMathDecoration.h
src/mathed/InsetMathDelim.h
src/mathed/InsetMathExInt.h
src/mathed/InsetMathKern.h
src/mathed/InsetMathMacroArgument.h
src/mathed/InsetMathNumber.h
src/mathed/InsetMathOverset.h
src/mathed/InsetMathRoot.h
src/mathed/InsetMathScript.h
src/mathed/InsetMathSize.h
src/mathed/InsetMathSqrt.h
src/mathed/InsetMathStackrel.h
src/mathed/InsetMathSymbol.h

index 3409679556581e324be67a905aebc8be4234c0c3..69373c21c144983b0de90b651cddc3ad9122f96d 100644 (file)
@@ -36,7 +36,7 @@ public:
        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_;
index b99cdebfb8977febb781ac991e587a03d0e9e3dd..bb90ab84fd188975b135c0125cc9eb9fbaa57eb2 100644 (file)
@@ -44,9 +44,9 @@ protected:
        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 {};
index 897fb392ffb3083566d52eb579a6ab66b92948a4..60a7afe9f1037ee42c348d38d118e8ea0a86e3f8 100644 (file)
@@ -48,7 +48,7 @@ public:
        /// 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
        //@{
index 5a2a5428614537d9ae66bf0f75fd3da6483dd286..470173effadad178b2359c8822e3945255481117 100644 (file)
@@ -97,7 +97,7 @@ private Q_SLOTS:
 
 protected:
        virtual void resizeEvent(QResizeEvent *e);
-       virtual void keyPressEvent(QKeyEvent *e);
+       virtual void keyPressEvent(QKeyEvent *e) override;
 
 private:
        void updateMargins();
index a4784b20ec03b4e24610c9604a203b8fe0f5de1e..db7ac312492474f2a692c9a99fb638bd304a4079 100644 (file)
@@ -87,9 +87,9 @@ private:
        //@}
 
        ///
-       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);
index 76833115cd255fe97ef20de814989f17280887e3..82a546a3ddd0a4274ff7effb0446f62435ec69ee 100644 (file)
@@ -40,7 +40,7 @@ protected:
        ///
        virtual bool event(QEvent * e);
        ///
-       virtual void keyPressEvent(QKeyEvent * e);
+       virtual void keyPressEvent(QKeyEvent * e) override;
 };
 
 } // namespace frontend
index 82afcd2071d27c615347e0a2bc9dd869093522e8..6d608876d3b617c480263a4fc78eea3b3a6a3b86 100644 (file)
@@ -32,7 +32,7 @@ public:
        GuiCompare(GuiView & lv);
        ~GuiCompare();
 
-       void closeEvent(QCloseEvent *);
+       void closeEvent(QCloseEvent *) override;
 
 private Q_SLOTS:
        ///
index b48f0aafe3cf1891ee95dbbea95c26f116696fd9..572ff536cd05ab0cf55399ab0d168376ca710e09 100644 (file)
@@ -62,7 +62,7 @@ public 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 {}
index e4446b4220798994f2083ccb85501c62464a88db..2ef9d250f95d1e7b4de951407da0795166efe983 100644 (file)
@@ -364,7 +364,7 @@ Q_SIGNALS:
        void changed();
 
 private:
-       void closeEvent(QCloseEvent *);
+       void closeEvent(QCloseEvent *) override;
        void on_preambleTE_textChanged() { changed(); }
 
        typedef std::map<BufferId, std::pair<int,int> > Coords;
index 6a560eedf93ebf90e7ab0acc84d6c8f0413317d7..30d9e4435039e5116867cddffcf704536c9316a8 100644 (file)
@@ -38,7 +38,7 @@ public Q_SLOTS:
 
 private:
        ///
-       void showEvent(QShowEvent *);
+       void showEvent(QShowEvent *) override;
        ///
        void paramsToDialog();
        ///
index 2c7322072f2e1ad69f21f0a789376c3b64d88a88..4ea4efc5045dcdd1d64e30b9c4e5ae56e12193f8 100644 (file)
@@ -77,8 +77,8 @@ private:
        bool eol_last_;
 
        void levelChanged();
-       void showEvent(QShowEvent*);
-       void hideEvent(QHideEvent*);
+       void showEvent(QShowEvent*) override;
+       void hideEvent(QHideEvent*) override;
 };
 
 
index 2dcd63e3684b0d8d17d624dfc0b95e38f98c0f1e..46e99ea96d99df78b5c0a0ce8e34e0c2cd3110bc 100644 (file)
@@ -63,7 +63,7 @@ private:
        ///
        void gotoBookmark();
        ///
-       void closeEvent(QCloseEvent * e);
+       void closeEvent(QCloseEvent * e) override;
        ///
        bool isValid() override;
        /// apply changes
index f61707704e12f52aaa9044205064cdcc2307130d..290111038507b5c1e5c10b0df8c628d4b309c9c9 100644 (file)
@@ -33,7 +33,7 @@ private Q_SLOTS:
        void replaceallClicked();
 
 private:
-       void showEvent(QShowEvent * e);
+       void showEvent(QShowEvent * e) override;
        ///
        bool initialiseParams(std::string const &) override { return true; }
        void clearParams() override {}
index c8826f7e0992895bc0e761c2e713a42d43b043ba..7e6df1db1b234b7f4859aa620b0c70d00d0b9505 100644 (file)
@@ -39,7 +39,7 @@ public:
        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:
index eccd05a6fb31fc6772c4ffa377b87bd3533cac0b..668b3f04d35acab78b15348c90f1a44db377679a 100644 (file)
@@ -176,7 +176,7 @@ private:
        ///
        void fill();
        ///
-       void showEvent(QShowEvent *);
+       void showEvent(QShowEvent *) override;
 
        ///
        QList<Action *> actions_;
index d611b39e0f586655ed7bd8f0c8eb427d1b249cba..4ec639d71d52d2e1d54f634e62173cab0d2f4890 100644 (file)
@@ -286,9 +286,9 @@ private:
        ///
        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);
index 0a50ea8b57c4a1b56554a6e784ed942196b55976..1d5696c17c9714d988d8287eaa6131d9e1e25f57 100644 (file)
@@ -145,7 +145,7 @@ private:
        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
@@ -195,9 +195,9 @@ public:
 
 protected:
        ///
-       void closeEvent(QCloseEvent * ev);
+       void closeEvent(QCloseEvent * ev) override;
        ///
-       void hideEvent(QHideEvent *ev);
+       void hideEvent(QHideEvent *ev) override;
 
 private:
        /// Embedded Buffer.
index f63e68d5ce73694b14ea5823439e1cdf6176c714..b65c7218d6848974599ab0ccbc9752d7be51b8af 100644 (file)
@@ -53,8 +53,8 @@ Q_SIGNALS:
        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:
index e0d03a189f0a73296ef8c028cb5ea0adc89a3c72..47d990602644471150abf1affaa900c0b94cf420 100644 (file)
@@ -66,7 +66,7 @@ public Q_SLOTS:
 
 protected:
        /// widget hidden
-       void hideEvent(QHideEvent * event);
+       void hideEvent(QHideEvent * event) override;
 
 private:
        ///
index ef9735632d5a975b16070c3ff2ae9f224747beca..9786900fd954c109ecb48258d886e45b0f6eb769 100644 (file)
@@ -1032,9 +1032,9 @@ public:
        // 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;
index f479ed2f032a3b0ffce500b434372ee121ca5ab6..ed1c773b6b6e384955332e6c4558c9a2c0c82867 100644 (file)
@@ -39,7 +39,7 @@ public:
        ///
        void htmlize(HtmlStream &) const override;
        ///
-       void infoize2(odocstream & os) const;
+       void infoize2(odocstream & os) const override;
        ///
        static bool isBigInsetDelim(docstring const &);
        ///
index d6da89043dc4114aeab044e5e284822d8d108c1d..4c81c4cdf3a0f2a9d5061fd619e2e86e3232d919 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        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;
        ///
index 3f3a54df9de40f433d430af1ee66e551c86e6077..78f01a8207bc07fce67864d1adbfc1b760fb6766 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        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;
        ///
index f575ee0b4bca45867bb0a751d272fd81bb755422..d45ecc7174679ea2fb90cea8c2cc0afe48f1cd62 100644 (file)
@@ -43,7 +43,7 @@ public:
        ///
        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;
index 3205048af9bd44b3566d62952077c2a203cc4c77..4a8c97a83718bd2193f9961c60d56505d67d861c 100644 (file)
@@ -41,7 +41,7 @@ public:
        ///
        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;
index efb83e244f2e523b1a4bb6296578eb9745bfb87c..1cf938b2bd509b635a943c686b7f5e1d4c2da833 100644 (file)
@@ -44,7 +44,7 @@ public:
        ///
        void htmlize(HtmlStream &) const override { }
        ///
-       void infoize2(odocstream & os) const;
+       void infoize2(odocstream & os) const override;
        ///
        InsetCode lyxCode() const override { return MATH_KERN_CODE; }
 
index 4fe0de435b9fdbe6ef2c150d2ac53f8d9e4a62fc..c0839c0464050d04e85a665aebef23976364c1a4 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        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;
        ///
index e7481bb21f9674cdf0a83a7abbb1dc4aa6ed360d..ce5803c1869e2932d894dfa82b75f88adb5d644a 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        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_; }
        ///
index 095e0f590a61d34310f440023b6ef7380352ca99..36b548ffc4e41427655a11fd61c43c60592dbb57 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        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;
        ///
index a91e89b3b395f7641792fc127120af782eb71144..5fb9d59b72a0aabda35b0471262f256e7e6de332 100644 (file)
@@ -25,11 +25,11 @@ public:
        ///
        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;
        ///
index 737d7c3ab24192839e95919868e237350222cad7..37fc593372e6a5ca7f23a65e19486533689b3d50 100644 (file)
@@ -50,7 +50,7 @@ public:
        /// 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;
index cf299013bcb5fd8f907f31af55b5475b5ed01fb3..6d0f52f80aebf46bfaea7fccb56fbc7629ed936c 100644 (file)
@@ -31,7 +31,7 @@ public:
        ///
        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;
index 829d5e209a5356a1a4c020359e8e7707f5e2f2fb..dba72eed704cd3ed2120e9eb908ca35a4e8fb16f 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        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;
        ///
index 5fa43616256c4c5cb3a1cb2b4afcf72f5acebd2a..0e5514fd38be3a1a9d78919b687782315cc44c1f 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        InsetMathStackrel(Buffer * buf, bool sub);
        ///
-       bool idxUpDown(Cursor &, bool up) const;
+       bool idxUpDown(Cursor &, bool up) const override;
        ///
        bool idxFirst(Cursor &) const override;
        ///
index 972fc53844cd33bbc59ec7cd0c7a53154e0e729e..a04a237075d9019f5294c8d5c0a43a21b6e277c0 100644 (file)
@@ -31,7 +31,7 @@ public:
        ///
        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_; }
 
@@ -74,7 +74,7 @@ public:
        ///
        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; }