File tree Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -600,6 +600,26 @@ void Tremolo::triggerLayout() const
600
600
}
601
601
}
602
602
603
+ bool Tremolo::needStartEditingAfterSelecting () const
604
+ {
605
+ return twoNotes ();
606
+ }
607
+
608
+ int Tremolo::gripsCount () const
609
+ {
610
+ return twoNotes () ? 3 : 0 ;
611
+ }
612
+
613
+ Grip Tremolo::initialEditModeGrip () const
614
+ {
615
+ return twoNotes () ? Grip::END : Grip::NO_GRIP;
616
+ }
617
+
618
+ Grip Tremolo::defaultGrip () const
619
+ {
620
+ return twoNotes () ? Grip::MIDDLE : Grip::NO_GRIP;
621
+ }
622
+
603
623
// ---------------------------------------------------------
604
624
// gripsPositions
605
625
// ---------------------------------------------------------
Original file line number Diff line number Diff line change @@ -132,15 +132,13 @@ class Tremolo final : public EngravingItem
132
132
void setUp (bool up) { _up = up; }
133
133
134
134
// only need grips for two-note trems
135
- bool needStartEditingAfterSelecting () const override { return twoNotes (); }
136
- int gripsCount () const override { return 3 ; }
137
- Grip initialEditModeGrip () const override { return Grip::END; }
138
- Grip defaultGrip () const override { return Grip::MIDDLE; }
135
+ bool needStartEditingAfterSelecting () const override ;
136
+ int gripsCount () const override ;
137
+ Grip initialEditModeGrip () const ;
138
+ Grip defaultGrip () const override ;
139
139
std::vector<mu::PointF> gripsPositions (const EditData&) const override ;
140
140
bool isMovable () const override { return true ; }
141
- void startDrag (EditData&) override {}
142
141
bool isEditable () const override { return true ; }
143
- void startEdit (EditData&) override {}
144
142
void endEdit (EditData&) override ;
145
143
void editDrag (EditData&) override ;
146
144
You can’t perform that action at this time.
0 commit comments