InstrumentTrackView: use QMdiArea's window activation history

There's no need to implement an own (buggy) window activation history
for InstrumentTrackWindows. Use QMdiArea::subWindowList(...) instead.
Fixes buggy keyboard focus when switching between InstrumentTrackWindows.
This commit is contained in:
Tobias Doerffel
2010-10-06 10:14:22 +02:00
parent fd40743772
commit c05965117c
3 changed files with 26 additions and 29 deletions

View File

@@ -41,7 +41,6 @@
class QLineEdit;
template<class T> class QQueue;
template<class T> class QStack;
class ArpeggiatorView;
class ChordCreatorView;
class EffectRackView;
@@ -260,10 +259,7 @@ public:
return castModel<InstrumentTrack>();
}
static InstrumentTrackWindow * topLevelInstrumentTrackWindow()
{
return s_windowStack.isEmpty() ? NULL : s_windowStack.top();
}
static InstrumentTrackWindow * topLevelInstrumentTrackWindow();
QMenu * midiMenu()
{
@@ -294,7 +290,6 @@ private:
InstrumentTrackWindow * m_window;
static QQueue<InstrumentTrackWindow *> s_windowCache;
static QStack<InstrumentTrackWindow *> s_windowStack;
// widgets in track-settings-widget
trackLabelButton * m_tlb;