mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Fixed not being able to collapse History item in the sidebar.
This commit is contained in:
@@ -33,7 +33,6 @@ using namespace Tomahawk;
|
|||||||
HistoryItem::HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue )
|
HistoryItem::HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue )
|
||||||
: GroupItem( model, parent, text, peerSortValue )
|
: GroupItem( model, parent, text, peerSortValue )
|
||||||
{
|
{
|
||||||
connect( this, SIGNAL( toggleExpandRequest( SourceTreeItem* ) ), model, SLOT( itemToggleExpandRequest( SourceTreeItem* ) ) );
|
|
||||||
connect( ViewManager::instance(), SIGNAL( tempPageActivated( Tomahawk::ViewPage* ) ), SLOT( tempPageActivated( Tomahawk::ViewPage* ) ) );
|
connect( ViewManager::instance(), SIGNAL( tempPageActivated( Tomahawk::ViewPage* ) ), SLOT( tempPageActivated( Tomahawk::ViewPage* ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,13 +42,6 @@ HistoryItem::~HistoryItem()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
HistoryItem::activate()
|
|
||||||
{
|
|
||||||
emit toggleExpandRequest( this );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
HistoryItem::tempPageActivated( Tomahawk::ViewPage* v )
|
HistoryItem::tempPageActivated( Tomahawk::ViewPage* v )
|
||||||
{
|
{
|
||||||
|
@@ -38,12 +38,6 @@ public:
|
|||||||
HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue = 0 );
|
HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue = 0 );
|
||||||
virtual ~HistoryItem();
|
virtual ~HistoryItem();
|
||||||
|
|
||||||
public slots:
|
|
||||||
virtual void activate();
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void activated();
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void tempPageActivated( Tomahawk::ViewPage* );
|
void tempPageActivated( Tomahawk::ViewPage* );
|
||||||
void temporaryPageDestroyed();
|
void temporaryPageDestroyed();
|
||||||
|
Reference in New Issue
Block a user