summaryrefslogtreecommitdiffstats
path: root/qt-ui/common.h
blob: 6e00c80ed500d78ea4acd1e18438e038161f20b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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