From 35001957085d79429ef56bea96020094f43963b8 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 22 Jan 2013 16:05:34 +0100 Subject: [PATCH] Added debug UI. --- src/TomahawkWindow.cpp | 2 ++ src/TomahawkWindow.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TomahawkWindow.cpp b/src/TomahawkWindow.cpp index 0e0948f2c..50ffb4486 100644 --- a/src/TomahawkWindow.cpp +++ b/src/TomahawkWindow.cpp @@ -154,6 +154,8 @@ TomahawkWindow::TomahawkWindow( QWidget* parent ) // Window must be fully constructed to toggle fullscreen mode. Queue it up. QTimer::singleShot( 0, this, SLOT( toggleFullscreen() ) ); } + QPushButton* pb = new QPushButton( "debug", this ); + connect( pb, SIGNAL(clicked()),this,SLOT(debug())); } diff --git a/src/TomahawkWindow.h b/src/TomahawkWindow.h index 16517226d..fa4888c1d 100644 --- a/src/TomahawkWindow.h +++ b/src/TomahawkWindow.h @@ -34,7 +34,8 @@ #include #include #include - +#include "SourceList.h" +#include "resolvers/ScriptCollection.h" #ifdef Q_OS_WIN #include #endif @@ -109,6 +110,9 @@ public slots: void fullScreenExited(); private slots: + void debug(){ + SourceList::instance()->getLocal()->addCollection( Tomahawk::collection_ptr( new Tomahawk::Collection( SourceList::instance()->getLocal(), "test" ) ) ); + } void onHistoryBackAvailable( bool avail ); void onHistoryForwardAvailable( bool avail );