From 8ca1878856e2ba4c7169c3acf0b93cac5e39467a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Dec 2016 14:47:12 -0500 Subject: [PATCH] CmdProjects: Migrated from ViewText to Table --- src/commands/CmdProjects.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdProjects.cpp b/src/commands/CmdProjects.cpp index 7606472c4..819ad59d4 100644 --- a/src/commands/CmdProjects.cpp +++ b/src/commands/CmdProjects.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -105,10 +105,10 @@ int CmdProjects::execute (std::string& output) if (unique.size ()) { // Render a list of project names from the map. - ViewText view; + Table view; view.width (context.getWidth ()); - view.add (Column::factory ("string", STRING_COLUMN_LABEL_PROJECT)); - view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_TASKS)); + view.add (STRING_COLUMN_LABEL_PROJECT); + view.add (STRING_COLUMN_LABEL_TASKS, false); if (context.color ()) {