diff --git a/src/libtomahawk/playlist/InboxModel.cpp b/src/libtomahawk/playlist/InboxModel.cpp index 3ee967839..f0dfc12ef 100644 --- a/src/libtomahawk/playlist/InboxModel.cpp +++ b/src/libtomahawk/playlist/InboxModel.cpp @@ -45,8 +45,7 @@ InboxModel::InboxModel( QObject* parent ) // Every time a ShareTrack dbcmd is created, we keep track of it until it's committed, // so we can react with post-commit changes in the UI Tomahawk::DatabaseCommandFactory* factory = Tomahawk::Database::instance()->commandFactory(); - connect( factory, SIGNAL(created(Tomahawk::dbcmd_ptr)), - this, SLOT(onDbcmdCreated(Tomahawk::dbcmd_ptr))); + connect( factory, SIGNAL( created( Tomahawk::dbcmd_ptr ) ), SLOT( onDbcmdCreated( Tomahawk::dbcmd_ptr ) ) ); } @@ -201,7 +200,7 @@ InboxModel::loadTracks() startLoading(); Tomahawk::DatabaseCommand_LoadInboxEntries* cmd = new Tomahawk::DatabaseCommand_LoadInboxEntries(); - connect( cmd, SIGNAL( tracks( QList ) ), this, SLOT( tracksLoaded( QList ) ) ); + connect( cmd, SIGNAL( tracks( QList ) ), SLOT( tracksLoaded( QList ) ) ); Tomahawk::Database::instance()->enqueue( Tomahawk::dbcmd_ptr( cmd ) ); } @@ -246,8 +245,7 @@ InboxModel::tracksLoaded( QList< Tomahawk::query_ptr > incoming ) void InboxModel::onDbcmdCreated( const Tomahawk::dbcmd_ptr& cmd ) { - connect( cmd.data(), SIGNAL( committed( Tomahawk::dbcmd_ptr ) ), - this, SLOT( onDbcmdCommitted( Tomahawk::dbcmd_ptr ) ) ); + connect( cmd.data(), SIGNAL( committed( Tomahawk::dbcmd_ptr ) ), SLOT( onDbcmdCommitted( Tomahawk::dbcmd_ptr ) ) ); } diff --git a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp index 7d3e9ecb2..f21a20e51 100644 --- a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp @@ -93,6 +93,7 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& } opt.text.clear(); + qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter ); if ( m_view->header()->visualIndex( index.column() ) > 0 )