summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index b00201297..05612a4ce 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -46,7 +46,7 @@ static QLocale loc;
static inline QString degreeSigns()
{
- return QStringLiteral("dD\u00b0");
+ return QStringLiteral("dD\u00b0");
}
QString weight_string(int weight_in_grams)
@@ -1644,3 +1644,14 @@ char *copy_qstring(const QString &s)
{
return strdup(qPrintable(s));
}
+
+// function to call to get changes for a git commit
+QString (*changesCallback)() = nullptr;
+
+extern "C" char *get_changes_made()
+{
+ if (changesCallback != nullptr)
+ return copy_qstring(changesCallback());
+ else
+ return nullptr;
+}