diff --git a/libmscore/mscoreview.h b/libmscore/mscoreview.h index ae6f09e96a..51238bdd8a 100644 --- a/libmscore/mscoreview.h +++ b/libmscore/mscoreview.h @@ -58,8 +58,6 @@ class MuseScoreView { virtual void setCursor(const QCursor&) {}; virtual void setDropRectangle(const QRectF&) {}; virtual void cmdAddSlur(ChordRest*, ChordRest*, const Slur* /* slurTemplate */) {}; - virtual void startEdit() {}; - virtual void startEditMode(Element*) {}; virtual void startEdit(Element*, Grip /*startGrip*/) {}; virtual void startNoteEntryMode() {}; virtual void drawBackground(QPainter*, const QRectF&) const = 0; diff --git a/mscore/exampleview.cpp b/mscore/exampleview.cpp index 7fef875c99..a7c2e05cb2 100644 --- a/mscore/exampleview.cpp +++ b/mscore/exampleview.cpp @@ -147,14 +147,6 @@ void ExampleView::cmdAddSlur(Note* /*firstNote*/, Note* /*lastNote*/) { } -void ExampleView::startEdit() - { - } - -void ExampleView::startEdit(Element*, Grip /*startGrip*/) - { - } - Element* ExampleView::elementNear(QPointF) { return 0; diff --git a/mscore/exampleview.h b/mscore/exampleview.h index 5c4a51fb7b..2c65d163ab 100644 --- a/mscore/exampleview.h +++ b/mscore/exampleview.h @@ -75,8 +75,6 @@ class ExampleView : public QFrame, public MuseScoreView { virtual void setCursor(const QCursor&); virtual void setDropRectangle(const QRectF&); virtual void cmdAddSlur(Note* firstNote, Note* lastNote); - virtual void startEdit(); - virtual void startEdit(Element*, Grip); virtual Element* elementNear(QPointF); virtual void drawBackground(QPainter*, const QRectF&) const; void dragExampleView(QMouseEvent* ev); diff --git a/mscore/pianoroll.cpp b/mscore/pianoroll.cpp index 53dbc34b1d..d9a2f824b1 100644 --- a/mscore/pianoroll.cpp +++ b/mscore/pianoroll.cpp @@ -683,22 +683,6 @@ const QTransform& PianorollEditor::matrix() const return t; } -//--------------------------------------------------------- -// startEdit -//--------------------------------------------------------- - -void PianorollEditor::startEdit() - { - } - -//--------------------------------------------------------- -// startEdit -//--------------------------------------------------------- - -void PianorollEditor::startEdit(Element*, Grip) - { - } - //--------------------------------------------------------- // elementNear //--------------------------------------------------------- diff --git a/mscore/pianoroll.h b/mscore/pianoroll.h index 6e662b901f..9b3e1ceced 100644 --- a/mscore/pianoroll.h +++ b/mscore/pianoroll.h @@ -108,8 +108,6 @@ class PianorollEditor : public QMainWindow, public MuseScoreView { virtual QCursor cursor() const override; virtual void setCursor(const QCursor&) override; const QTransform& matrix() const; - virtual void startEdit() override; - virtual void startEdit(Element*, Grip) override; virtual Element* elementNear(QPointF) override; virtual void drawBackground(QPainter* /*p*/, const QRectF& /*r*/) const override {} diff --git a/mscore/scoreview.h b/mscore/scoreview.h index c0d7337646..38011bd2fc 100644 --- a/mscore/scoreview.h +++ b/mscore/scoreview.h @@ -241,7 +241,7 @@ class ScoreView : public QWidget, public MuseScoreView { void endFotoDragEdit(); QImage getRectImage(const QRectF& rect, double dpi, bool transparent, bool printMode); - virtual void startEdit(); + void startEdit(); void endEdit(); void startDrag(); @@ -299,8 +299,8 @@ class ScoreView : public QWidget, public MuseScoreView { QPixmap* fgPixmap() { return _fgPixmap; } - virtual void startEdit(Element*, Grip) override; - virtual void startEditMode(Element*) override; + void startEdit(Element*, Grip) override; + void startEditMode(Element*); void moveCursor(const Fraction& tick); Fraction cursorTick() const;