Commit 95a7be8b authored by Jekyll Wu's avatar Jekyll Wu
Browse files

DrKonqi now makes use of the new "drkonqi" keyword on bugs.kde.org

That makes it easier to identify and search for reports created by
DrKonqi. That should be helpful for developers to collect statistics and
examples.

REVIEW: 280145
FEATURE: 108450

FIXED-IN: 4.11.0
parent 0bf10cac
......@@ -150,6 +150,7 @@ void BugzillaManager::sendReport(const BugReport & report)
args.insert(QLatin1String("description"), report.description());
args.insert(QLatin1String("op_sys"), report.operatingSystem());
args.insert(QLatin1String("platform"), report.platform());
args.insert(QLatin1String("keywords"), report.keywords());
args.insert(QLatin1String("priority"), report.priority());
args.insert(QLatin1String("severity"), report.bugSeverity());
......
......@@ -161,6 +161,13 @@ public:
return getData("bug_severity");
}
void setKeywords(const QStringList & keywords) {
setData("keywords", keywords.join(","));
}
QStringList keywords() const {
return getData("keywords").split(',');
}
void setDescription(const QString & desc) {
m_commentList.insert(0, desc);
}
......
......@@ -282,6 +282,7 @@ BugReport ReportInterface::newBugReportTemplate() const
} else {
report.setPlatform(sysInfo->bugzillaPlatform());
}
report.setKeywords(QStringList() << "drkonqi");
report.setPriority(QLatin1String("NOR"));
report.setBugSeverity(QLatin1String("crash"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment