Mercurial > hg > octave-thorsten
diff libgui/src/workspace-model.cc @ 15344:67fabb3d81f4 draft
display class of variables in workspace viewer instead of type
* symbol-information.h, symbol-information.cc
(symbol_information::_class): Rename from _type. Change all uses.
* workspace-model.cc (workspace_model::workspace_model): Display
"Class" instead of "Type".
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 10 Sep 2012 15:30:22 -0400 |
parents | 359098ad343e |
children | b565850bdce7 |
line wrap: on
line diff
--- a/libgui/src/workspace-model.cc +++ b/libgui/src/workspace-model.cc @@ -38,7 +38,7 @@ : QAbstractItemModel(parent), octave_event_observer () { QList<QVariant> rootData; - rootData << tr ("Name") << tr ("Type") << tr("Dimension") << tr ("Value"); + rootData << tr ("Name") << tr ("Class") << tr("Dimension") << tr ("Value"); _rootItem = new tree_item(rootData); insert_top_level_item(0, new tree_item ("Local")); @@ -95,7 +95,7 @@ tree_item *child = new tree_item (); child->set_data (0, s._symbol); - child->set_data (1, s._type); + child->set_data (1, s._class); child->set_data (2, s._dimension); child->set_data (3, s._value);