GUI: Better handling of 'Hide all with ID'
This commit is contained in:
parent
f8c74032a7
commit
0883623159
|
@ -139,6 +139,10 @@ bool ResultsTree::addErrorItem(const ErrorItem &item)
|
||||||
|
|
||||||
bool hide = !mShowSeverities.isShown(item.severity);
|
bool hide = !mShowSeverities.isShown(item.severity);
|
||||||
|
|
||||||
|
// Ids that are temporarily hidden..
|
||||||
|
if (mHiddenMessageId.contains(item.errorId))
|
||||||
|
hide = true;
|
||||||
|
|
||||||
//If specified, filter on summary, message, filename, and id
|
//If specified, filter on summary, message, filename, and id
|
||||||
if (!hide && !mFilter.isEmpty()) {
|
if (!hide && !mFilter.isEmpty()) {
|
||||||
if (!item.summary.contains(mFilter, Qt::CaseInsensitive) &&
|
if (!item.summary.contains(mFilter, Qt::CaseInsensitive) &&
|
||||||
|
@ -190,6 +194,7 @@ bool ResultsTree::addErrorItem(const ErrorItem &item)
|
||||||
data["file0"] = stripPath(item.file0, true);
|
data["file0"] = stripPath(item.file0, true);
|
||||||
data["sinceDate"] = item.sinceDate;
|
data["sinceDate"] = item.sinceDate;
|
||||||
data["tags"] = item.tags;
|
data["tags"] = item.tags;
|
||||||
|
data["hide"] = hide;
|
||||||
stditem->setData(QVariant(data));
|
stditem->setData(QVariant(data));
|
||||||
|
|
||||||
//Add backtrace files as children
|
//Add backtrace files as children
|
||||||
|
@ -423,6 +428,7 @@ void ResultsTree::filterResults(const QString& filter)
|
||||||
void ResultsTree::showHiddenResults()
|
void ResultsTree::showHiddenResults()
|
||||||
{
|
{
|
||||||
//Clear the "hide" flag for each item
|
//Clear the "hide" flag for each item
|
||||||
|
mHiddenMessageId.clear();
|
||||||
int filecount = mModel.rowCount();
|
int filecount = mModel.rowCount();
|
||||||
for (int i = 0; i < filecount; i++) {
|
for (int i = 0; i < filecount; i++) {
|
||||||
QStandardItem *fileItem = mModel.item(i, 0);
|
QStandardItem *fileItem = mModel.item(i, 0);
|
||||||
|
@ -931,6 +937,8 @@ void ResultsTree::hideAllIdResult()
|
||||||
|
|
||||||
QString messageId = data["id"].toString();
|
QString messageId = data["id"].toString();
|
||||||
|
|
||||||
|
mHiddenMessageId.append(messageId);
|
||||||
|
|
||||||
// hide all errors with that message Id
|
// hide all errors with that message Id
|
||||||
int filecount = mModel.rowCount();
|
int filecount = mModel.rowCount();
|
||||||
for (int i = 0; i < filecount; i++) {
|
for (int i = 0; i < filecount; i++) {
|
||||||
|
|
|
@ -545,6 +545,8 @@ private:
|
||||||
|
|
||||||
QStringList mTags;
|
QStringList mTags;
|
||||||
|
|
||||||
|
QStringList mHiddenMessageId;
|
||||||
|
|
||||||
QItemSelectionModel *mSelectionModel;
|
QItemSelectionModel *mSelectionModel;
|
||||||
ThreadHandler *mThread;
|
ThreadHandler *mThread;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue