Allow renaming of FX mixer channels with the F2 and enter keys. (#4348)

* Add f2 as a FX mixer rename shortcut. Enter doesn't work yet.

* Add both enter keys, remove code duplication

* Fix renaming with enter/return

* Clean up
This commit is contained in:
SecondFlight
2018-05-13 17:15:32 -04:00
committed by GitHub
parent 0d73f32c03
commit 4585a07673
4 changed files with 36 additions and 1 deletions

View File

@@ -79,6 +79,10 @@ public:
static const int FxLineHeight;
void renameChannel();
bool eventFilter (QObject *dist, QEvent *event);
private:
void drawFxLine( QPainter* p, const FxLine *fxLine, bool isActive, bool sendToThis, bool receiveFromThis );
QString elideName( const QString & name );
@@ -98,7 +102,6 @@ private:
QGraphicsView * m_view;
private slots:
void renameChannel();
void renameFinished();
void removeChannel();
void removeUnusedChannels();

View File

@@ -100,6 +100,8 @@ public:
void moveChannelLeft(int index, int focusIndex);
void moveChannelRight(int index);
void renameChannel(int index);
// make sure the display syncs up with the fx mixer.
// useful for loading projects
void refreshDisplay();