[vlmc-devel] [PATCH 3/4] Set objectName of a QUndoView

yikei lu luyikei.qmltu at gmail.com
Fri Apr 29 10:20:12 CEST 2016


We should use QStringLiteral basically if we use Qt5
http://doc.qt.io/qt-5/qstring.html#QStringLiteral

2016-04-29 17:16 GMT+09:00 Yikai Lu <luyikei.qmltu at gmail.com>:
> ---
>  src/Gui/MainWindow.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
> index fe68245..265629f 100644
> --- a/src/Gui/MainWindow.cpp
> +++ b/src/Gui/MainWindow.cpp
> @@ -441,6 +441,7 @@ void
>  MainWindow::setupUndoRedoWidget()
>  {
>      m_undoView = new QUndoView;
> +    m_undoView->setObjectName( QStringLiteral( "History" ) );
>      m_dockedUndoView = dockWidget( m_undoView, Qt::TopDockWidgetArea );
>      auto stack = Core::instance()->undoStack();
>      connect( stack, SIGNAL( canUndoChanged( bool ) ), this, SLOT( canUndoChanged( bool ) ) );
> --
> 1.9.1
>


More information about the Vlmc-devel mailing list