Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

BUG: 392201
parent b558147b
......@@ -3090,7 +3090,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->projectManager()->current()->projectDataFolder() + QStringLiteral("/titles/");
TitleWidget::refreshTitleTemplates(titlePath);
......@@ -3099,7 +3099,7 @@ void MainWindow::slotGetNewTitleStuff()
void MainWindow::slotGetNewLumaStuff()
{
if (getNewStuff(QStringLiteral("kdenlive_wipes.knsrc")) > 0) {
if (getNewStuff(QStringLiteral(":data/kdenlive_wipes.knsrc")) > 0) {
initEffects::refreshLumas();
pCore->projectManager()->currentTimeline()->projectView()->reloadTransitionLumas();
}
......@@ -3107,7 +3107,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();
}
......
......@@ -13,4 +13,9 @@
<file alias="SceneToolBar.qml">../data/SceneToolBar.qml</file>
<file alias="EffectToolBar.qml">../data/EffectToolBar.qml</file>
</qresource>
<qresource prefix="data">
<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