diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 9bd1dfca0..5ee7fd91f 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -165,7 +165,6 @@ set( libSources utils/elidedlabel.cpp utils/imagebutton.cpp utils/logger.cpp - utils/progresstreeview.cpp utils/proxystyle.cpp utils/widgetdragfilter.cpp utils/animatedsplitter.cpp @@ -214,7 +213,6 @@ set( libHeaders artist.h album.h - track.h playlist.h sip/SipPlugin.h @@ -347,7 +345,6 @@ set( libHeaders utils/elidedlabel.h utils/animatedcounterlabel.h utils/imagebutton.h - utils/progresstreeview.h utils/widgetdragfilter.h utils/animatedsplitter.h utils/xspfloader.h diff --git a/src/libtomahawk/playlist/trackview.cpp b/src/libtomahawk/playlist/trackview.cpp index 443ee1296..aa32ccff6 100644 --- a/src/libtomahawk/playlist/trackview.cpp +++ b/src/libtomahawk/playlist/trackview.cpp @@ -27,7 +27,6 @@ #include "queueview.h" #include "trackmodel.h" #include "trackproxymodel.h" -#include "track.h" #include "audio/audioengine.h" #include "widgets/overlaywidget.h" diff --git a/src/libtomahawk/track.h b/src/libtomahawk/track.h deleted file mode 100644 index c379c620a..000000000 --- a/src/libtomahawk/track.h +++ /dev/null @@ -1,53 +0,0 @@ -/* === This file is part of Tomahawk Player - === - * - * Copyright 2010-2011, Christian Muehlhaeuser - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ - -#ifndef TOMAHAWKTRACK_H -#define TOMAHAWKTRACK_H - -#include -#include - -#include "artist.h" -#include "typedefs.h" - -#include "dllmacro.h" - -namespace Tomahawk -{ - -class DLLEXPORT Track : public QObject -{ -Q_OBJECT - -public: - Track( Tomahawk::artist_ptr artist, const QString& name ) - : m_name( name ) - , m_artist( artist ) - {} - - const QString& name() const { return m_name; } - const artist_ptr artist() const { return m_artist; } - -private: - QString m_name; - artist_ptr m_artist; -}; - -}; // ns - -#endif diff --git a/src/libtomahawk/utils/progresstreeview.cpp b/src/libtomahawk/utils/progresstreeview.cpp deleted file mode 100644 index 4a2ef9698..000000000 --- a/src/libtomahawk/utils/progresstreeview.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* === This file is part of Tomahawk Player - === - * - * Copyright 2010-2011, Christian Muehlhaeuser - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ - -#include "progresstreeview.h" - -#include "utils/logger.h" - - -ProgressTreeView::ProgressTreeView( QWidget* parent ) - : QTreeView( parent ) - , m_progressBar( 0 ) -{ -} diff --git a/src/libtomahawk/utils/progresstreeview.h b/src/libtomahawk/utils/progresstreeview.h deleted file mode 100644 index e77971eaf..000000000 --- a/src/libtomahawk/utils/progresstreeview.h +++ /dev/null @@ -1,44 +0,0 @@ -/* === This file is part of Tomahawk Player - === - * - * Copyright 2010-2011, Christian Muehlhaeuser - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ - -#ifndef PROGRESSTREEVIEW_H -#define PROGRESSTREEVIEW_H - -#include -#include - -#include "dllmacro.h" - -class DLLEXPORT ProgressTreeView : public QTreeView -{ -Q_OBJECT - -public: - ProgressTreeView( QWidget* parent ); - - void connectProgressBar( QProgressBar* progressBar ) { m_progressBar = progressBar; progressBar->setVisible( false ); } - - void setProgressStarted( int length ) { if ( m_progressBar ) { m_progressBar->setRange( 0, length ); m_progressBar->setValue( 0 ); m_progressBar->setVisible( true ); } } - void setProgressEnded() { if ( m_progressBar ) m_progressBar->setVisible( false ); } - void setProgressCompletion( int completion ) { if ( m_progressBar ) m_progressBar->setValue( completion ); } - -private: - QProgressBar* m_progressBar; -}; - -#endif // PROGRESSTREEVIEW_H