Add common.h file
Oops Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f5c958ad73
commit
fc0e307f00
20
qt-ui/common.h
Normal file
20
qt-ui/common.h
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user