[consider merging] fixing Qt-less builds

This commit is contained in:
klayoutmatthias 2025-08-03 14:19:02 +02:00
parent 08e7b6fe72
commit 642cbd6831
2 changed files with 7 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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)
{