Commit 610c33ee authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug operator here

parent 7f2fc6d2
Pipeline #64871 canceled with stage
...@@ -281,3 +281,12 @@ QString Filter::identifier() const ...@@ -281,3 +281,12 @@ QString Filter::identifier() const
{ {
return mIdentifier; return mIdentifier;
} }
QDebug operator<<(QDebug d, const MessageList::Core::Filter &t)
{
d << "filtername " << t.filterName();
d << "identifier " << t.identifier();
d << "search string " << t.searchString();
d << "search option " << t.currentOptions();
return d;
}
...@@ -8,10 +8,12 @@ ...@@ -8,10 +8,12 @@
#pragma once #pragma once
#include <QDebug>
#include <QObject> #include <QObject>
#include <QSet> #include <QSet>
#include <QString> #include <QString>
#include "messagelist_export.h"
#include "widgets/quicksearchline.h" #include "widgets/quicksearchline.h"
#include <Akonadi/KMime/MessageStatus> #include <Akonadi/KMime/MessageStatus>
#include <Collection> #include <Collection>
...@@ -119,3 +121,4 @@ private: ...@@ -119,3 +121,4 @@ private:
} // namespace Core } // namespace Core
} // namespace MessageList } // namespace MessageList
MESSAGELIST_EXPORT QDebug operator<<(QDebug d, const MessageList::Core::Filter &t);
Markdown is supported
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