# HG changeset patch # User Jacob Dawid # Date 1340273919 -7200 # Node ID 0d35ab1cf10cb91f81c969b2d37f2151417776a1 # Parent 8e9f2cfa114d97b7f45df17c514f39a6d09b3f48 Set text elide mode and replaced \n by \\n, so long strings do not bloat the workspace view. * symbol-information.h: Replacing \n with \\n. * workspace-view.cc: Set text elide mode and deactivated word wrapping. diff --git a/gui/src/symbol-information.h b/gui/src/symbol-information.h --- a/gui/src/symbol-information.h +++ b/gui/src/symbol-information.h @@ -141,6 +141,7 @@ else _value = QString (""); + _value.replace("\n", "\\n"); return true; } } symbol_information; diff --git a/gui/src/workspace-view.cc b/gui/src/workspace-view.cc --- a/gui/src/workspace-view.cc +++ b/gui/src/workspace-view.cc @@ -33,6 +33,8 @@ _workspace_tree_view->setAlternatingRowColors (true); //_workspace_tree_view->setAnimated (true); _workspace_tree_view->setModel (_workspace_model); + _workspace_tree_view->setTextElideMode (Qt::ElideRight); + _workspace_tree_view->setWordWrap (false); setWidget (new QWidget (this)); QVBoxLayout *layout = new QVBoxLayout ();