aboutsummaryrefslogtreecommitdiff
path: root/launcher/Version.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/Version.cpp')
-rw-r--r--launcher/Version.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/launcher/Version.cpp b/launcher/Version.cpp
index 9fdd955b..2129ebfd 100644
--- a/launcher/Version.cpp
+++ b/launcher/Version.cpp
@@ -1,5 +1,6 @@
#include "Version.h"
+#include <QDebug>
#include <QUrl>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
@@ -93,3 +94,20 @@ void Version::parse()
m_sections.append(Section(currentSection));
}
}
+
+
+/// qDebug print support for the BlockedMod struct
+QDebug operator<<(QDebug debug, const Version& v)
+{
+ QDebugStateSaver saver(debug);
+
+ debug.nospace() << "Version{ string: " << v.toString() << ", sections: [ ";
+
+ for (auto s : v.m_sections) {
+ debug.nospace() << s.m_fullString << ", ";
+ }
+
+ debug.nospace() << " ]" << " }";
+
+ return debug;
+} \ No newline at end of file