From 816dedb93818a89d15d6e5f4d24584f438f662ca Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Fri, 29 Apr 2016 13:47:13 +0200 Subject: [PATCH] Increased the graphical TabWidget's height by 2 pixels for eye-candy. The InstrumentTrackWindow's height has been increased by the same amount. Cyrille --- include/TabWidget.h | 2 +- src/gui/widgets/TabWidget.cpp | 4 ++-- src/tracks/InstrumentTrack.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/TabWidget.h b/include/TabWidget.h index 0635ffbac..04ef71068 100644 --- a/include/TabWidget.h +++ b/include/TabWidget.h @@ -30,7 +30,7 @@ #include const int TEXT_TAB_HEIGHT = 14; -const int GRAPHIC_TAB_HEIGHT = 17; +const int GRAPHIC_TAB_HEIGHT = 19; class TabWidget : public QWidget { diff --git a/src/gui/widgets/TabWidget.cpp b/src/gui/widgets/TabWidget.cpp index dfc0240fd..0dce73144 100644 --- a/src/gui/widgets/TabWidget.cpp +++ b/src/gui/widgets/TabWidget.cpp @@ -273,14 +273,14 @@ void TabWidget::paintEvent( QPaintEvent * pe ) if( it.key() == m_activeTab ) { artwork = new QPixmap( embed::getIconPixmap( ( *it ).activePixmap ) ); - p.fillRect( tab_x_offset, 2, ( *it ).nwidth, m_tabbarHeight - 3, cap_col ); + p.fillRect( tab_x_offset, 3, ( *it ).nwidth, m_tabbarHeight - 5, cap_col ); } else { artwork = new QPixmap( embed::getIconPixmap( ( *it ).inactivePixmap ) ); } // Draw artwork - p.drawPixmap(tab_x_offset + ( ( *it ).nwidth - ( *artwork ).width() ) / 2, 2, *artwork ); + p.drawPixmap(tab_x_offset + ( ( *it ).nwidth - ( *artwork ).width() ) / 2, 3, *artwork ); } else { diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index ef0aab4fc..d4b9b411e 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -91,7 +91,7 @@ const char * volume_help = QT_TRANSLATE_NOOP( "InstrumentTrack", "the volume of the opened " "channel."); -const int INSTRUMENT_WIDTH = 254; +const int INSTRUMENT_WIDTH = 256; const int INSTRUMENT_HEIGHT = INSTRUMENT_WIDTH; const int PIANO_HEIGHT = 82; const int INSTRUMENT_WINDOW_CACHE_SIZE = 8; @@ -1407,7 +1407,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) : m_tabWidget = new TabWidget( "", this, true ); - m_tabWidget->setFixedHeight( INSTRUMENT_HEIGHT + GRAPHIC_TAB_HEIGHT - 4 ); + m_tabWidget->setFixedHeight( INSTRUMENT_HEIGHT + GRAPHIC_TAB_HEIGHT - 6 ); // create tab-widgets