[vlmc-devel] Timeline.cpp: Use QStringLiteral

Yikai Lu git at videolan.org
Mon Aug 1 11:40:45 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Jul 31 15:37:09 2016 +0900| [71fc86f6cc126a097a9540268e5342e6fbae2934] | committer: Yikai Lu

Timeline.cpp: Use QStringLiteral

> https://code.videolan.org/videolan/vlmc/commit/71fc86f6cc126a097a9540268e5342e6fbae2934
---

 src/Gui/timeline/Timeline.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Gui/timeline/Timeline.cpp b/src/Gui/timeline/Timeline.cpp
index bf2d49a..03cd397 100644
--- a/src/Gui/timeline/Timeline.cpp
+++ b/src/Gui/timeline/Timeline.cpp
@@ -38,9 +38,9 @@ Timeline::Timeline( MainWindow* parent )
 {
     m_container->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
     m_container->setFocusPolicy( Qt::TabFocus );
-    m_view->rootContext()->setContextProperty( "timeline", this );
-    m_view->rootContext()->setContextProperty( "mainwindow", parent );
-    m_view->rootContext()->setContextProperty( "workflow", Core::instance()->workflow() );
+    m_view->rootContext()->setContextProperty( QStringLiteral( "timeline" ), this );
+    m_view->rootContext()->setContextProperty( QStringLiteral( "mainwindow" ), parent );
+    m_view->rootContext()->setContextProperty( QStringLiteral( "workflow" ), Core::instance()->workflow() );
     m_view->setSource( QUrl( QStringLiteral( "qrc:/QML/main.qml" ) ) );
 }
 



More information about the Vlmc-devel mailing list