mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Trigger showing our default ViewPage (dashboard) from the SourceTreeView. Just as ugly as from the SourcesModel.
This commit is contained in:
@@ -45,6 +45,8 @@
|
|||||||
#include "widgets/SourceTreePopupDialog.h"
|
#include "widgets/SourceTreePopupDialog.h"
|
||||||
#include "PlaylistEntry.h"
|
#include "PlaylistEntry.h"
|
||||||
|
|
||||||
|
#include "../../viewpages/dashboard/Dashboard.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
@@ -149,6 +151,8 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
renamePlaylistAction->setShortcut( Qt::Key_F2 );
|
renamePlaylistAction->setShortcut( Qt::Key_F2 );
|
||||||
addAction( renamePlaylistAction );
|
addAction( renamePlaylistAction );
|
||||||
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
||||||
|
|
||||||
|
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::DASHBOARD_VIEWPAGE_NAME );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user