[vlmc-devel] Fix missing QStringLiteral
Yikai Lu
git at videolan.org
Sat Jul 8 17:16:11 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Jul 7 19:10:48 2017 +0900| [01eb11fd64ac00bac159594010753d10b5b71cf2] | committer: Yikai Lu
Fix missing QStringLiteral
> https://code.videolan.org/videolan/vlmc/commit/01eb11fd64ac00bac159594010753d10b5b71cf2
---
src/Gui/timeline/Timeline.cpp | 2 +-
src/Library/Library.cpp | 4 ++--
src/Workflow/MainWorkflow.cpp | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Gui/timeline/Timeline.cpp b/src/Gui/timeline/Timeline.cpp
index c139bc33..e5197840 100644
--- a/src/Gui/timeline/Timeline.cpp
+++ b/src/Gui/timeline/Timeline.cpp
@@ -72,7 +72,7 @@ Timeline::Timeline( Settings* projectSettings, MainWindow* parent )
SettingValue::Folders );
connect( m_settings.get(), &Settings::postLoad, this, &Timeline::postLoad, Qt::DirectConnection );
connect( m_settings.get(), &Settings::preSave, this, &Timeline::preSave, Qt::DirectConnection );
- projectSettings->addSettings( "Timeline", *m_settings );
+ projectSettings->addSettings( QStringLiteral( "Timeline" ), *m_settings );
}
Timeline::~Timeline()
diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 7a891cc0..c7488fc0 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -61,10 +61,10 @@ Library::Library( Settings* vlmcSettings, Settings *projectSettings )
connect( ws, &SettingValue::changed, this, &Library::workspaceChanged );
// Setting up the project section of the Library
- m_settings->createVar( SettingValue::List, QString( "medias" ), QVariantList(), "", "", SettingValue::Nothing );
+ m_settings->createVar( SettingValue::List, QStringLiteral( "medias" ), QVariantList(), "", "", SettingValue::Nothing );
connect( m_settings.get(), &Settings::postLoad, this, &Library::postLoad, Qt::DirectConnection );
connect( m_settings.get(), &Settings::preSave, this, &Library::preSave, Qt::DirectConnection );
- projectSettings->addSettings( "Library", *m_settings );
+ projectSettings->addSettings( QStringLiteral( "Library" ), *m_settings );
}
void
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index e9ad6059..9e53048a 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -79,7 +79,7 @@ MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
m_settings->createVar( SettingValue::List, "tracks", QVariantList(), "", "", SettingValue::Nothing );
connect( m_settings, &Settings::postLoad, this, &MainWorkflow::postLoad, Qt::DirectConnection );
connect( m_settings, &Settings::preSave, this, &MainWorkflow::preSave, Qt::DirectConnection );
- projectSettings->addSettings( "Workspace", *m_settings );
+ projectSettings->addSettings( QStringLiteral( "Workspace" ), *m_settings );
connect( m_undoStack.get(), &Commands::AbstractUndoStack::cleanChanged, this, &MainWorkflow::cleanChanged );
}
More information about the Vlmc-devel
mailing list