From d66c71ebf8de34d39948ed0f8538b774c91be5d0 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 7 Aug 2009 17:44:49 +0200 Subject: [PATCH] MainWindow: removed HQ mode button Switching to HQ mode in standard workflow doesn't make much sense and is likely to cause problems. Therefore remove the HQ mode button for for time being. One can still export projects in high(er) quality. --- src/gui/main_window.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp index d58acd68a..df32ab2e0 100644 --- a/src/gui/main_window.cpp +++ b/src/gui/main_window.cpp @@ -476,6 +476,7 @@ void mainWindow::finalize( void ) QVBoxLayout * tempo_hq_layout = new QVBoxLayout( tempo_hq_w ); tempo_hq_layout->setMargin( 0 ); tempo_hq_layout->setSpacing( 0 ); + tempo_hq_layout->addSpacing( 22 ); // tempo spin box m_tempoSpinBox = new lcdSpinBox( 3, tempo_hq_w, tr( "Tempo" ) ); @@ -493,6 +494,7 @@ void mainWindow::finalize( void ) tempo_hq_layout->addWidget( m_tempoSpinBox ); +#if 0 // high quality button toolButton * hq_btn = new toolButton( embed::getIconPixmap( "hq_mode" ), tr( "High quality mode" ), @@ -503,18 +505,26 @@ void mainWindow::finalize( void ) hq_btn->setFixedWidth( 42 ); tempo_hq_layout->addWidget( hq_btn ); +#endif // add container to main toolbar m_toolBarLayout->addWidget( tempo_hq_w ); - + m_toolBarLayout->insertSpacing( -1, 10 ); // time signature spin boxes + QWidget * timeSigWidget = new QWidget( m_toolBar ); + QVBoxLayout * timeSigLayout = new QVBoxLayout( timeSigWidget ); + timeSigLayout->setMargin( 0 ); + timeSigLayout->setSpacing( 0 ); + timeSigLayout->addSpacing( 3 ); + m_timeSigDisplay = new meterDialog( this, TRUE ); m_timeSigDisplay->setModel( &( engine::getSong()->m_timeSigModel ) ); - - m_toolBarLayout->addWidget( m_timeSigDisplay, 0, Qt::AlignLeft ); + timeSigLayout->addWidget( m_timeSigDisplay ); + + m_toolBarLayout->addWidget( timeSigWidget ); m_toolBarLayout->insertSpacing( -1, 10 );