1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 07:07:05 +02: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. // Window must be fully constructed to toggle fullscreen mode. Queue it up.
QTimer::singleShot( 0, this, SLOT( toggleFullscreen() ) ); 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 <QString>
#include <QStackedWidget> #include <QStackedWidget>
#include <QToolButton> #include <QToolButton>
#include "SourceList.h"
#include "resolvers/ScriptCollection.h"
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <shobjidl.h> #include <shobjidl.h>
#endif #endif
@@ -109,6 +110,9 @@ public slots:
void fullScreenExited(); void fullScreenExited();
private slots: private slots:
void debug(){
SourceList::instance()->getLocal()->addCollection( Tomahawk::collection_ptr( new Tomahawk::Collection( SourceList::instance()->getLocal(), "test" ) ) );
}
void onHistoryBackAvailable( bool avail ); void onHistoryBackAvailable( bool avail );
void onHistoryForwardAvailable( bool avail ); void onHistoryForwardAvailable( bool avail );