Commit b863d433 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

change backend to use new subtitle overlord class

parent 12a40d54
......@@ -293,6 +293,10 @@ QList<int> Backend::objectDescriptionIndexes(ObjectDescriptionType type) const
}
}
break;
case Phonon::SubtitleType: {
list << GlobalSubtitles::instance()->globalIndexes();
}
break;
}
return list;
......@@ -352,6 +356,13 @@ QHash<QByteArray, QVariant> Backend::objectDescriptionProperties(ObjectDescripti
}
}
break;
case Phonon::SubtitleType: {
const SubtitleDescription description = GlobalSubtitles::instance()->fromIndex(index);
ret.insert("name", description.name());
ret.insert("description", description.description());
ret.insert("type", description.property("type"));
}
break;
}
return ret;
......
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