diff --git a/src/tomahawk/AudioControls.cpp b/src/tomahawk/AudioControls.cpp
index 69c86c3f0..c7b93ba1a 100644
--- a/src/tomahawk/AudioControls.cpp
+++ b/src/tomahawk/AudioControls.cpp
@@ -172,27 +172,8 @@ AudioControls::AudioControls( QWidget* parent )
connect( ViewManager::instance(), SIGNAL( viewPageDestroyed() ), SLOT( onControlStateChanged() ) );
-// TomahawkUtils::unmarginLayout( ui->horizontalLayout );
-// TomahawkUtils::unmarginLayout( ui->buttonAreaLayout );
-// ui->buttonAreaLayout->setSpacing( 0 );
- ui->stackedLayout->setSpacing( 0 );
- ui->stackedLayout->setContentsMargins( 0, 0, 0, 0 );
- ui->stackedLayout->setMargin( 0 );
- ui->playPauseButton->setContentsMargins( 0, 0, 0, 0 );
- ui->pauseButton->setContentsMargins( 0, 0, 0, 0 );
- ui->stackedLayout->setSizeConstraint( QLayout::SetFixedSize );
-
- // setFixedSize corrections for stuff in .ui :(
-// ui->buttonArea->setFixedSize( scaled( 170, 66 ) );
- //ui->coverImage->setFixedSize( scaled( 60, 60 ) );
- //ui->metaDataArea->setMaximumHeight( scaledY( 74 ) );
- //ui->widget_4->setFixedSize( scaled( 170, 66 ) );
-// ui->volumeSlider->setFixedHeight( 20 );
-// ui->verticalLayout->setContentsMargins( scaledX( 2 ), scaledY( 6 ),
-// 0, scaledY( 6 ) );
-
connect( InfoSystem::InfoSystem::instance(), SIGNAL( updatedSupportedPushTypes( Tomahawk::InfoSystem::InfoTypeSet ) ),
- this, SLOT( onInfoSystemPushTypesUpdated( Tomahawk::InfoSystem::InfoTypeSet ) ) );
+ SLOT( onInfoSystemPushTypesUpdated( Tomahawk::InfoSystem::InfoTypeSet ) ) );
onInfoSystemPushTypesUpdated( InfoSystem::InfoSystem::instance()->supportedPushTypes() );
onPlaybackStopped(); // initial state
@@ -334,7 +315,8 @@ AudioControls::onPlaybackLoading( const Tomahawk::result_ptr result )
ui->timeLeftLabel->setText( "-" + duration );
m_lastTextSecondShown = 0;
- ui->stackedLayout->setCurrentWidget( ui->pauseButton );
+ ui->playPauseButton->setVisible( false );
+ ui->pauseButton->setVisible( true );
/* ui->loveButton->setEnabled( true );
ui->loveButton->setVisible( true );
@@ -462,7 +444,8 @@ void
AudioControls::onPlaybackPaused()
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
- ui->stackedLayout->setCurrentWidget( ui->playPauseButton );
+ ui->playPauseButton->setVisible( true );
+ ui->pauseButton->setVisible( false );
m_sliderTimeLine.setPaused( true );
}
@@ -471,7 +454,8 @@ void
AudioControls::onPlaybackResumed()
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
- ui->stackedLayout->setCurrentWidget( ui->pauseButton );
+ ui->playPauseButton->setVisible( false );
+ ui->pauseButton->setVisible( true );
m_seeked = true;
onPlaybackTimer( m_lastSliderCheck );
}
@@ -504,7 +488,8 @@ AudioControls::onPlaybackStopped()
m_phononTickCheckTimer.stop();
ui->ownerButton->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultResolver, TomahawkUtils::Original, QSize( 34, 34 ) ) );
- ui->stackedLayout->setCurrentWidget( ui->playPauseButton );
+ ui->playPauseButton->setVisible( true );
+ ui->pauseButton->setVisible( false );
/* ui->loveButton->setEnabled( false );
ui->loveButton->setVisible( false );
ui->socialButton->setEnabled( false );
diff --git a/src/tomahawk/AudioControls.ui b/src/tomahawk/AudioControls.ui
index ee4ff2cfa..0a8549de8 100644
--- a/src/tomahawk/AudioControls.ui
+++ b/src/tomahawk/AudioControls.ui
@@ -6,14 +6,17 @@
0
0
- 1014
- 108
+ 1043
+ 112
Form
+
+ 0
+
32
@@ -24,17 +27,17 @@
32
- 24
+ 16
-
-
+
0
-
-
-
- 0
+
+
+ 8
-
@@ -118,9 +121,9 @@
-
-
-
- 0
+
+
+ 8
-
@@ -144,12 +147,21 @@
- 0
+ 8
QLayout::SetMinimumSize
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -176,28 +188,30 @@
-
-
-
- 0
+
+
+
+ 0
+ 0
+
-
- 0
+
+ Play
-
-
-
-
- Play
-
-
-
- -
-
-
- Pause
-
-
-
-
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Pause
+
+
-
@@ -247,7 +261,7 @@
Time
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
@@ -282,137 +296,137 @@
Time Left
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignTop
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 32
- 8
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Shuffle
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 32
- 8
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Repeat
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 32
- 8
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Low
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 4
- 8
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 80
- 4
-
-
-
-
- 80
- 4
-
-
-
- Qt::Horizontal
-
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 32
+ 8
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Shuffle
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 32
+ 8
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Repeat
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 32
+ 8
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Low
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 4
+ 8
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 80
+ 4
+
+
+
+
+ 80
+ 4
+
+
+
+ Qt::Horizontal
+
+