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