From c95aa9fa3c6de442e436f427e72f9160d7b8363d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Dec 2016 20:10:21 -0500 Subject: [PATCH] TDB2: Migrated from ViewText to Table --- src/TDB2.cpp | 15 ++++++++------- src/TDB2.h | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index b8caae2b0..69790c5c6 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -1043,12 +1044,12 @@ void TDB2::show_diff ( // Attributes are all there is, so figure the different attribute names // between before and after. - ViewText view; + Table view; view.width (context.getWidth ()); view.intraPadding (2); - view.add (Column::factory ("string", "")); - view.add (Column::factory ("string", STRING_TDB2_UNDO_PRIOR)); - view.add (Column::factory ("string", STRING_TDB2_UNDO_CURRENT)); + view.add (""); + view.add (STRING_TDB2_UNDO_PRIOR); + view.add (STRING_TDB2_UNDO_CURRENT); Color label (context.config.get ("color.label")); view.colorHeader (label); @@ -1141,11 +1142,11 @@ void TDB2::show_diff ( Task after (current); // Generate table header. - ViewText view; + Table view; view.width (context.getWidth ()); view.intraPadding (2); - view.add (Column::factory ("string", "")); - view.add (Column::factory ("string", "")); + view.add (""); + view.add (""); int row = view.addRow (); view.set (row, 0, STRING_TDB2_DIFF_PREV, color_red); diff --git a/src/TDB2.h b/src/TDB2.h index a830355e4..0b6f7ea34 100644 --- a/src/TDB2.h +++ b/src/TDB2.h @@ -33,7 +33,6 @@ #include #include #include -#include #include #include