本文整理汇总了C++中TomahawkSettings::repeatMode方法的典型用法代码示例。如果您正苦于以下问题:C++ TomahawkSettings::repeatMode方法的具体用法?C++ TomahawkSettings::repeatMode怎么用?C++ TomahawkSettings::repeatMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TomahawkSettings
的用法示例。
在下文中一共展示了TomahawkSettings::repeatMode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: playlistForInterface
void
ViewManager::loadCurrentPlaylistSettings()
{
TomahawkSettings* s = TomahawkSettings::instance();
Tomahawk::playlist_ptr pl = playlistForInterface( currentPlaylistInterface() );
if ( !pl.isNull() ) {
currentPlaylistInterface()->setShuffled( s->shuffleState( pl->guid() ));
currentPlaylistInterface()->setRepeatMode( s->repeatMode( pl->guid() ));
} else {
Tomahawk::dynplaylist_ptr dynPl = dynamicPlaylistForInterface( currentPlaylistInterface() );
if ( !dynPl.isNull() ) {
currentPlaylistInterface()->setShuffled( s->shuffleState( dynPl->guid() ));
}
}
}
示例2: tDebug
void
TrackView::setGuid( const QString& newguid )
{
if ( newguid == m_guid )
return;
if ( !newguid.isEmpty() )
{
tDebug() << Q_FUNC_INFO << "Setting guid on header" << newguid << "for a view with" << m_proxyModel->columnCount() << "columns";
m_guid = newguid;
m_header->setGuid( guid() );
if ( !m_guid.isEmpty() && proxyModel()->playlistInterface() )
{
tDebug() << Q_FUNC_INFO << "Restoring shuffle & random mode settings for guid" << m_guid;
TomahawkSettings* s = TomahawkSettings::instance();
proxyModel()->playlistInterface()->setShuffled( s->shuffleState( m_guid ) );
proxyModel()->playlistInterface()->setRepeatMode( s->repeatMode( m_guid ) );
}
}
}