[calamares] Apply coding style to progresstree

main
Adriaan de Groot 5 years ago
parent 257f718ab6
commit 7ec6dff352

@ -65,9 +65,9 @@ ViewStepItem::data( int role ) const
toolTip.append( "<br/>Type:\tViewStep" ); toolTip.append( "<br/>Type:\tViewStep" );
toolTip.append( QString( "<br/>Pretty:\t%1" ).arg( m_step->prettyName() ) ); toolTip.append( QString( "<br/>Pretty:\t%1" ).arg( m_step->prettyName() ) );
toolTip.append( QString( "<br/>Status:\t%1" ).arg( m_step->prettyStatus() ) ); toolTip.append( QString( "<br/>Status:\t%1" ).arg( m_step->prettyStatus() ) );
toolTip.append( toolTip.append( QString( "<br/>Source:\t%1" )
QString( "<br/>Source:\t%1" ) .arg( m_step->moduleInstanceKey().isValid() ? m_step->moduleInstanceKey().toString()
.arg( m_step->moduleInstanceKey().isValid() ? m_step->moduleInstanceKey().toString() : QStringLiteral("built-in") ) ); : QStringLiteral( "built-in" ) ) );
} }
else else
{ {
@ -77,7 +77,9 @@ ViewStepItem::data( int role ) const
return toolTip; return toolTip;
} }
if ( role == ProgressTreeModel::ProgressTreeItemCurrentRole ) if ( role == ProgressTreeModel::ProgressTreeItemCurrentRole )
{
return m_step ? ( Calamares::ViewManager::instance()->currentStep() == m_step ) return m_step ? ( Calamares::ViewManager::instance()->currentStep() == m_step )
: ( Calamares::ViewManager::instance()->currentStep() == m_accessor() ); : ( Calamares::ViewManager::instance()->currentStep() == m_accessor() );
}
return QVariant(); return QVariant();
} }

Loading…
Cancel
Save