diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-09 18:16:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-09 18:16:28 +0100 |
commit | 4f9c633bc9a661fbeb367e950f6789d8de6782e6 (patch) | |
tree | 4291547da96f114fb050aefd104e49a3a2f3efb8 /compat | |
parent | 89f104782e673cfacec0eab016dc22a51533f113 (diff) |
compat: add easier translate boilerplate for non-qobject
Diffstat (limited to 'compat')
-rw-r--r-- | compat/macros.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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__ |