Skip to content

Commit 8b9ab0a

Browse files
committed
Add QDebug() operator<<(QDebug d, const BigInteger & bigInteger);
1 parent 2b71b06 commit 8b9ab0a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

bigintegerobject.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,10 @@ class BigIntegerWrapperRegistrationHelper {
214214
};
215215

216216
static BigIntegerWrapperRegistrationHelper registerHelper;
217+
218+
QDebug operator<<(QDebug d, const BigInteger &bigInteger)
219+
{
220+
d << QString::fromStdString(bigIntegerToString(bigInteger));
221+
222+
return d;
223+
}

bigintegerobject.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22
#include <QObject>
33
#include <QJSValue>
4+
#include "BigInteger.hh"
45

56
// QML Wrapper Object for BigInteger manipulation
67

@@ -50,3 +51,4 @@ public slots:
5051

5152
};
5253

54+
QDebug operator<< (QDebug d, const BigInteger &bigInteger);

0 commit comments

Comments
 (0)