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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Sat Apr 30 19:07:55 CEST 2016


On 04/29/2016 10:05 AM, Yikai Lu wrote:
> ---
>  src/Gui/MainWindow.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
> index fe68245..c86c241 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( QLatin1Literal( "History" ) );
>      m_dockedUndoView = dockWidget( m_undoView, Qt::TopDockWidgetArea );
>      auto stack = Core::instance()->undoStack();
>      connect( stack, SIGNAL( canUndoChanged( bool ) ), this, SLOT( canUndoChanged( bool ) ) );
> 
Why specifically latin1? Shouldn't the default QString constructor
assume utf8 and be fine with it?

-- 
Hugo Beauzée-Luyssen
www.beauzee.fr


More information about the Vlmc-devel mailing list