mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
stop stations when you navigate to a different view
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "CollapsibleControls.h"
|
||||
#include "DynamicControlWrapper.h"
|
||||
#include "dynamic/DynamicView.h"
|
||||
#include <qevent.h>
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
@@ -209,6 +210,15 @@ DynamicWidget::layoutSteerer()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
DynamicWidget::hideEvent( QHideEvent* ev )
|
||||
{
|
||||
if( m_runningOnDemand ) {
|
||||
generateOrStart();
|
||||
}
|
||||
QWidget::hideEvent( ev );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DynamicWidget::generateOrStart()
|
||||
|
@@ -23,6 +23,7 @@
|
||||
#include "dynamic/DynamicPlaylist.h"
|
||||
#include "dynamic/DynamicControl.h"
|
||||
|
||||
class QHideEvent;
|
||||
class QSpinBox;
|
||||
class QVBoxLayout;
|
||||
class QHBoxLayout;
|
||||
@@ -63,6 +64,7 @@ public:
|
||||
|
||||
virtual QSize sizeHint() const;
|
||||
virtual void resizeEvent( QResizeEvent* );
|
||||
virtual void hideEvent(QHideEvent* );
|
||||
public slots:
|
||||
void onRevisionLoaded( const Tomahawk::DynamicPlaylistRevision& rev );
|
||||
|
||||
|
Reference in New Issue
Block a user