Projectexplorer: Modernize codebase

Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-04-13 15:52:14 +02:00
parent 79da8a4586
commit 95ac4edfd4
207 changed files with 1047 additions and 1292 deletions

View File

@@ -79,8 +79,6 @@ private:
class CategoryData
{
public:
CategoryData() : count(0), warnings(0), errors(0) { }
void addTask(const Task &task)
{
++count;
@@ -106,9 +104,9 @@ private:
}
QString displayName;
int count;
int warnings;
int errors;
int count = 0;
int warnings = 0;
int errors = 0;
};
QHash<Core::Id,CategoryData> m_categories; // category id to data
@@ -127,7 +125,7 @@ class TaskFilterModel : public QAbstractItemModel
Q_OBJECT
public:
TaskFilterModel(TaskModel *sourceModel, QObject *parent = 0);
TaskFilterModel(TaskModel *sourceModel, QObject *parent = nullptr);
TaskModel *taskModel() { return m_sourceModel; }