Add common.h file

Oops

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-04-14 06:21:32 -07:00
parent f5c958ad73
commit fc0e307f00

20
qt-ui/common.h Normal file
View file

@ -0,0 +1,20 @@
/*
* common.h
*
* shared by all Qt/C++ code
*
*/
#ifndef COMMON_H
#define COMMON_H
#include <glib/gi18n.h>
#include <QString>
/* use this instead of tr() for translated string literals */
inline QString Qtr_(const char *str)
{
return QString::fromUtf8(gettext(str));
}
#endif