Skip to content

Commit

Permalink
* Merged from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Dec 4, 2011
1 parent 0c49693 commit a628fad
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/libtomahawk/audio/audioengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@ AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
emit started( m_currentTrack );

if ( TomahawkSettings::instance()->verboseNotifications() )
sendNowPlayingNotification();
sendNowPlayingNotification();

if ( TomahawkSettings::instance()->privateListeningMode() != TomahawkSettings::FullyPrivate )
{
DatabaseCommand_LogPlayback* cmd = new DatabaseCommand_LogPlayback( m_currentTrack, DatabaseCommand_LogPlayback::Started );
Expand Down
1 change: 0 additions & 1 deletion src/libtomahawk/playlist/albumview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ AlbumView::setAlbumModel( AlbumModel* model )
connect( m_model, SIGNAL( loadingStarted() ), m_loadingSpinner, SLOT( fadeIn() ) );
connect( m_model, SIGNAL( loadingFinished() ), m_loadingSpinner, SLOT( fadeOut() ) );

setAcceptDrops( false );
onViewChanged(); // Fetch covers if albums were added to model before model was attached to view
}

Expand Down
13 changes: 3 additions & 10 deletions src/libtomahawk/playlist/artistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ ArtistView::setTreeModel( TreeModel* model )
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );

guid(); // this will set the guid on the header
setAcceptDrops( false );

if ( model->columnStyle() == TreeModel::TrackOnly )
{
Expand All @@ -154,8 +153,10 @@ ArtistView::setTreeModel( TreeModel* model )


void
ArtistView::currentChanged( const QModelIndex& current, const QModelIndex& /* previous */ )
ArtistView::currentChanged( const QModelIndex& current, const QModelIndex& previous )
{
QTreeView::currentChanged( current, previous );

if ( !m_updateContextView )
return;

Expand Down Expand Up @@ -196,7 +197,6 @@ ArtistView::onItemActivated( const QModelIndex& index )
void
ArtistView::keyPressEvent( QKeyEvent* event )
{
qDebug() << Q_FUNC_INFO;
QTreeView::keyPressEvent( event );

if ( !model() )
Expand All @@ -209,13 +209,6 @@ ArtistView::keyPressEvent( QKeyEvent* event )
}


void
ArtistView::paintEvent( QPaintEvent* event )
{
QTreeView::paintEvent( event );
}


void
ArtistView::resizeEvent( QResizeEvent* event )
{
Expand Down
3 changes: 1 addition & 2 deletions src/libtomahawk/playlist/artistview.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public slots:
virtual void startDrag( Qt::DropActions supportedActions );
virtual void resizeEvent( QResizeEvent* event );

void paintEvent( QPaintEvent* event );
void keyPressEvent( QKeyEvent* event );
virtual void keyPressEvent( QKeyEvent* event );

protected slots:
virtual void currentChanged( const QModelIndex& current, const QModelIndex& previous );
Expand Down
1 change: 0 additions & 1 deletion src/libtomahawk/playlist/collectionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ CollectionView::CollectionView( QWidget* parent )
setProxyModel( new CollectionProxyModel( this ) );

setDragDropMode( QAbstractItemView::DragOnly );
setAcceptDrops( false );
}


Expand Down
4 changes: 3 additions & 1 deletion src/libtomahawk/playlist/trackview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ TrackView::setTrackModel( TrackModel* model )


void
TrackView::currentChanged( const QModelIndex& current, const QModelIndex& /* previous */ )
TrackView::currentChanged( const QModelIndex& current, const QModelIndex& previous )
{
QTreeView::currentChanged( current, previous );

if ( !m_updateContextView )
return;

Expand Down
2 changes: 0 additions & 2 deletions src/libtomahawk/playlist/treemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#include "treemodel.h"

#include <QListView>
#include <QMimeData>
#include <QNetworkReply>

#include "source.h"
#include "sourcelist.h"
Expand Down
4 changes: 3 additions & 1 deletion src/libtomahawk/viewmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ ViewManager::playlistInterfaceChanged( Tomahawk::PlaylistInterface* interface )
if ( !pl.isNull() )
{
TomahawkSettings::instance()->appendRecentlyPlayedPlaylist( pl );
} else
}
else
{
pl = dynamicPlaylistForInterface( interface );
if ( !pl.isNull() )
Expand All @@ -409,6 +410,7 @@ ViewManager::showWelcomePage()
return show( m_welcomeWidget );
}


Tomahawk::ViewPage*
ViewManager::showWhatsHotPage()
{
Expand Down

0 comments on commit a628fad

Please sign in to comment.