From 4f9c633bc9a661fbeb367e950f6789d8de6782e6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 9 Dec 2017 18:16:28 +0100 Subject: compat: add easier translate boilerplate for non-qobject --- compat/macros.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compat/macros.hpp') diff --git a/compat/macros.hpp b/compat/macros.hpp index bf134c75..05a027bd 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -1,5 +1,7 @@ #pragma once +#define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str))) + #if defined _MSC_VER # define never_inline __declspec(noinline) #elif defined __GNUG__ -- cgit v1.2.3