void-packages/srcpkgs/openscad/patches/uic_qgettext.patch

35 lines
880 B
Diff

From 4fa5f0340a2b7b031a0b39f7de0ca795d52bb68b Mon Sep 17 00:00:00 2001
From: Torsten Paul <Torsten.Paul@gmx.de>
Date: Sun, 27 Nov 2016 19:29:04 +0100
Subject: [PATCH] Handle 2 argument translation calls generated by Qt 5.7.1
(fixes #1872).
---
src/qtgettext.h | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git src/qtgettext.h src/qtgettext.h
index 6e66716..dbc4f17 100644
--- src/qtgettext.h
+++ src/qtgettext.h
@@ -16,10 +16,16 @@
#define N_(String) String
-inline QString _( const char *msgid, int category )
+inline QString _(const char *msgid, int category)
{
- Q_UNUSED( category );
- return QString::fromUtf8( _( msgid ) );
+ Q_UNUSED(category);
+ return QString::fromUtf8(_(msgid));
+}
+
+inline QString _(const char *msgid, const char *disambiguation)
+{
+ Q_UNUSED(disambiguation);
+ return QString::fromUtf8(_(msgid));
}
#endif