subsurface/qt-ui/common.h
Dirk Hohndel fc0e307f00 Add common.h file
Oops

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-04-14 06:21:32 -07:00

21 lines
286 B
C

/*
* 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