changeset 14783:0d35ab1cf10c gui

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.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Thu, 21 Jun 2012 12:18:39 +0200
parents 8e9f2cfa114d
children 84d1d9c035c7
files gui/src/symbol-information.h gui/src/workspace-view.cc
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/src/symbol-information.h	Mon Jun 18 15:51:30 2012 +0200
+++ b/gui/src/symbol-information.h	Thu Jun 21 12:18:39 2012 +0200
@@ -141,6 +141,7 @@
     else
       _value = QString ("<Type not recognized>");
 
+    _value.replace("\n", "\\n");
     return true;
   }
 } symbol_information;
--- a/gui/src/workspace-view.cc	Mon Jun 18 15:51:30 2012 +0200
+++ b/gui/src/workspace-view.cc	Thu Jun 21 12:18:39 2012 +0200
@@ -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 ();