MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / onTaskAdded

Method onTaskAdded

tools/GetIssuesListTool.cpp:41–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void IssuesTracker::onTaskAdded(const ProjectExplorer::Task &task)
42{
43 QMutexLocker locker(&m_mutex);
44 m_tasks.append(task);
45
46 QString typeStr;
47#if QODEASSIST_QT_CREATOR_VERSION >= QT_VERSION_CHECK(18, 0, 0)
48 auto taskType = task.type();
49 auto taskFile = task.file();
50 auto taskLine = task.line();
51#else
52 auto taskType = task.type;
53 auto taskFile = task.file;
54 auto taskLine = task.line;
55#endif
56 switch (taskType) {
57 case ProjectExplorer::Task::Error:
58 typeStr = "ERROR";
59 break;
60 case ProjectExplorer::Task::Warning:
61 typeStr = "WARNING";
62 break;
63 default:
64 typeStr = "INFO";
65 break;
66 }
67
68}
69
70void IssuesTracker::onTaskRemoved(const ProjectExplorer::Task &task)
71{

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected