1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Coding-style fixes.

This commit is contained in:
Christian Muehlhaeuser 2014-08-13 01:11:53 +02:00
parent 6172183698
commit 2cb5b203b9
2 changed files with 4 additions and 5 deletions

View File

@ -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<Tomahawk::DatabaseCommand_ShareTrack>();
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<Tomahawk::query_ptr> ) ), this, SLOT( tracksLoaded( QList<Tomahawk::query_ptr> ) ) );
connect( cmd, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), SLOT( tracksLoaded( QList<Tomahawk::query_ptr> ) ) );
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 ) ) );
}

View File

@ -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 )