Move knsrc files in Qt resource so we find them without install

BUG: 392201
parent 4fcb5840
......@@ -3052,7 +3052,7 @@ int MainWindow::getNewStuff(const QString &configFile)
void MainWindow::slotGetNewTitleStuff()
{
if (getNewStuff(QStringLiteral("kdenlive_titles.knsrc")) > 0) {
if (getNewStuff(QStringLiteral(":data/kdenlive_titles.knsrc")) > 0) {
// get project title path
QString titlePath = pCore->currentDoc()->projectDataFolder() + QStringLiteral("/titles/");
TitleWidget::refreshTitleTemplates(titlePath);
......@@ -3061,7 +3061,7 @@ void MainWindow::slotGetNewTitleStuff()
void MainWindow::slotGetNewLumaStuff()
{
if (getNewStuff(QStringLiteral("kdenlive_wipes.knsrc")) > 0) {
if (getNewStuff(QStringLiteral(":data/kdenlive_wipes.knsrc")) > 0) {
initEffects::refreshLumas();
// TODO: refresh currently displayd trans ?
}
......@@ -3069,7 +3069,7 @@ void MainWindow::slotGetNewLumaStuff()
void MainWindow::slotGetNewRenderStuff()
{
if (getNewStuff(QStringLiteral("kdenlive_renderprofiles.knsrc")) > 0)
if (getNewStuff(QStringLiteral(":data/kdenlive_renderprofiles.knsrc")) > 0)
if (m_renderWidget) {
m_renderWidget->reloadProfiles();
}
......
......@@ -36,5 +36,8 @@
<qresource prefix="data">
<file alias="blacklisted_effects.txt">../data/blacklisted_effects.txt</file>
<file alias="blacklisted_transitions.txt">../data/blacklisted_transitions.txt</file>
<file alias="kdenlive_renderprofiles.knsrc">../data/kdenlive_renderprofiles.knsrc</file>
<file alias="kdenlive_titles.knsrc">../data/kdenlive_titles.knsrc</file>
<file alias="kdenlive_wipes.knsrc">../data/kdenlive_wipes.knsrc</file>
</qresource>
</RCC>
Markdown is supported
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