From fc0e307f00ceb50771d1c7a1489c7b65721f4143 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 14 Apr 2013 06:21:32 -0700 Subject: Add common.h file Oops Signed-off-by: Dirk Hohndel --- qt-ui/common.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 qt-ui/common.h (limited to 'qt-ui') diff --git a/qt-ui/common.h b/qt-ui/common.h new file mode 100644 index 000000000..6e00c80ed --- /dev/null +++ b/qt-ui/common.h @@ -0,0 +1,20 @@ +/* + * common.h + * + * shared by all Qt/C++ code + * + */ + +#ifndef COMMON_H +#define COMMON_H + +#include +#include + +/* use this instead of tr() for translated string literals */ +inline QString Qtr_(const char *str) +{ + return QString::fromUtf8(gettext(str)); +} + +#endif -- cgit v1.2.3-70-g09d2