Improve performance when moving channels in the Mixer (#8235)
Improves performance when moving mixer channels to the left or right using simple Qt layout operations and swapping of values. This commit also addresses a deadlock in Mixer::mixToChannel by ensuring we lock and unlock the same channel regardless of any move operations occurring simultaneously on another thread.
This commit is contained in:
@@ -64,6 +64,7 @@ public:
|
||||
void keyPressEvent(QKeyEvent* ke) override;
|
||||
|
||||
void reset();
|
||||
|
||||
int channelIndex() const { return m_channelIndex; }
|
||||
void setChannelIndex(int index);
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ public:
|
||||
|
||||
// move the channel to the left or right
|
||||
void moveChannelLeft(int index);
|
||||
void moveChannelLeft(int index, int focusIndex);
|
||||
void moveChannelRight(int index);
|
||||
|
||||
void renameChannel(int index);
|
||||
|
||||
Reference in New Issue
Block a user