mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add common.h file
Oops Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f5c958ad73
commit
fc0e307f00
1 changed files with 20 additions and 0 deletions
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…
Add table
Reference in a new issue