YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
Loading...
Searching...
No Matches
str_label.hpp File Reference
#include <QString>
Include dependency graph for str_label.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define str_label(text)
 Create a user-visible localized label.

Macro Definition Documentation

◆ str_label

#define str_label ( text)
Value:
QStringLiteral(text)

Create a user-visible localized label.

This macro provides a lightweight abstraction over translation/localization:

  • If KC_KDE is defined, it expands to KDE's i18n(text) for runtime translation using KLocalizedString.
  • Otherwise it expands to QStringLiteral(text) to produce an efficient, compile-time UTF-16 QString.

Usage:

auto title = str_label("Settings");
#define str_label(text)
Create a user-visible localized label.
Definition str_label.hpp:29
Parameters
textNarrow string literal to translate or wrap as a QString.
Returns
A localized QString.

Definition at line 29 of file str_label.hpp.