From 8c23ff712c15dbbb5f71b75d263fe4e89c12e106 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 26 Mar 2012 20:21:40 -0500 Subject: [PATCH] Default to the Tempo editor --- oom/Composer/Composer.cpp | 3 ++- oom/Composer/Composer.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/oom/Composer/Composer.cpp b/oom/Composer/Composer.cpp index be8accda..016b72bd 100644 --- a/oom/Composer/Composer.cpp +++ b/oom/Composer/Composer.cpp @@ -335,7 +335,7 @@ Composer::Composer(QMainWindow* parent, const char* name) m_headerTabs->addTab(&virtualScroll, QString(tr("Navigator"))); m_headerTabs->addTab(m_tempoHeader, QString(tr("Tempo"))); - m_headerTabs->setCornerWidget(headerCornerWidget(0)); + m_headerTabs->setCornerWidget(headerCornerWidget(1)); connect(m_headerTabs, SIGNAL(currentChanged(int)), this, SLOT(headerTabChanged(int))); m_tempoHeader->setStartTempo(m_tempoStart); @@ -483,6 +483,7 @@ QWidget* Composer::headerCornerWidget(int tab) connect(m_tempoRange, SIGNAL(maxChanged(double)), this, SLOT(setEndTempo(double))); m_headerToolBox->setCurrentIndex(tab); + m_headerTabs->setCurrentIndex(tab); return m_headerToolBox; } diff --git a/oom/Composer/Composer.h b/oom/Composer/Composer.h index 974dbae0..7b3c1a97 100644 --- a/oom/Composer/Composer.h +++ b/oom/Composer/Composer.h @@ -131,7 +131,6 @@ private slots: void resourceDockAreaChanged(Qt::DockWidgetArea); void currentTabChanged(int); void composerViewChanged(); - void updateAll(); void updateScroll(int, int); void headerTabChanged(int); void setStartTempo(double); @@ -168,6 +167,7 @@ public slots: void verticalScrollSetYpos(unsigned); void preloadControllers(); void heartBeat(); + void updateAll(); public: