Commit a7e69f19 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated qVariantFromValue() -> QVariant::fromValue()

parent 430e08a2
Pipeline #170102 passed with stage
in 4 minutes and 29 seconds
......@@ -175,7 +175,7 @@ QVariant K3b::AudioTrackModel::data( const QModelIndex& index, int role ) const
switch( role ) {
case MediumRole:
return qVariantFromValue( d->medium );
return QVariant::fromValue( d->medium );
case TrackNumberRole:
return trackIndex+1;
......@@ -190,7 +190,7 @@ QVariant K3b::AudioTrackModel::data( const QModelIndex& index, int role ) const
return d->getField( KCDDB::Comment, trackIndex );
case LengthRole:
return qVariantFromValue( d->medium.toc()[trackIndex].length() );
return QVariant::fromValue( d->medium.toc()[trackIndex].length() );
case Qt::DisplayRole:
case Qt::EditRole:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment