1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Added debug UI.

This commit is contained in:
Teo Mrnjavac 2013-01-22 16:05:34 +01:00
parent a767b7acc0
commit 3500195708
2 changed files with 7 additions and 1 deletions

View File

@ -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()));
}

View File

@ -34,7 +34,8 @@
#include <QString>
#include <QStackedWidget>
#include <QToolButton>
#include "SourceList.h"
#include "resolvers/ScriptCollection.h"
#ifdef Q_OS_WIN
#include <shobjidl.h>
#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 );