mirror of https://github.com/KLayout/klayout.git
[consider merging] fixing Qt-less builds
This commit is contained in:
parent
08e7b6fe72
commit
642cbd6831
|
|
@ -117,8 +117,6 @@ std::string tr (const char *s)
|
|||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
std::string tr_fallback (const char *s)
|
||||
{
|
||||
#if defined(HAVE_QT)
|
||||
|
|
@ -128,3 +126,6 @@ std::string tr_fallback (const char *s)
|
|||
return std::string (s);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,10 @@ inline QString tr (const char *s)
|
|||
// by using "tr" and falling back here, even if Qt is enabled
|
||||
|
||||
#define __KLAYOUT_TL_HAVE_TR_FALLBACK
|
||||
std::string TL_PUBLIC tr_fallback (const char *s);
|
||||
namespace tl
|
||||
{
|
||||
std::string TL_PUBLIC tr_fallback (const char *s);
|
||||
}
|
||||
|
||||
inline std::string tr (const char *s)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue