Mercurial > hg > octave-terminal
changeset 13681:ee7f4294d162
Variables view now showing matrix size.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 25 Sep 2011 21:28:38 +0200 |
parents | 3a2b09503fed |
children | c0e0625ffd13 |
files | gui/src/backend/OctaveLink.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/backend/OctaveLink.cpp +++ b/gui/src/backend/OctaveLink.cpp @@ -70,15 +70,17 @@ } else if (octaveValue.is_real_matrix ()) { - // TODO: Convert real matrix into a string. - return QString ("{matrix}"); + return QString ("%1x%2 matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); // Convert complex matrix. } else if (octaveValue.is_complex_matrix ()) { - // TODO: Convert complex matrix into a string. - return QString ("{complex matrix}"); + return QString ("%1x%2 complex matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); // If everything else does not fit, we could not recognize the type. }