View
- Broke out View into ViewTask and ViewText, where the former uses an external std::vector <Task> as storage, thus eliminating the additional copy, and the latter that duplicates data and color into 2D vectors for rendering non-task data.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include <Context.h>
|
||||
#include <Date.h>
|
||||
#include <Duration.h>
|
||||
#include <View.h>
|
||||
#include <ViewTask.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#include <main.h>
|
||||
@@ -237,7 +237,7 @@ int handleCustomReport (const std::string& report, std::string& outs)
|
||||
sort_tasks (tasks, sequence, reportSort);
|
||||
|
||||
// Configure the view.
|
||||
View view;
|
||||
ViewTask view;
|
||||
view.width (context.getWidth ());
|
||||
view.leftMargin (context.config.getInteger ("indent.report"));
|
||||
view.extraPadding (context.config.getInteger ("row.padding"));
|
||||
|
||||
Reference in New Issue
Block a user