◆ LanguageSelectWidgetImpl() [1/2]
geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::LanguageSelectWidgetImpl |
( |
LanguageSelectWidget * |
pQ | ) |
|
|
inline |
22 :
q{pQ},
ui{std::make_unique<Ui::LanguageSelectWidget>()}
◆ LanguageSelectWidgetImpl() [2/2]
geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::LanguageSelectWidgetImpl |
( |
const LanguageSelectWidgetImpl & |
| ) |
|
|
delete |
◆ ~LanguageSelectWidgetImpl()
geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::~LanguageSelectWidgetImpl |
( |
| ) |
|
|
inline |
◆ onLanguageChange()
void geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::onLanguageChange |
( |
| ) |
|
|
inline |
◆ operator=()
◆ populateUi()
void geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::populateUi |
( |
| ) |
|
|
inlineprivate |
46 const QLocale locale{QString::fromStdString(localeName)};
47 ui->currentLanguageNameLabel->setText(locale.nativeLanguageName());
48 ui->currentCountryNameLabel->setText(locale.nativeCountryName());
50 const QString extractedLocaleName{locale.name()};
52 assert(!icon.isNull());
53 assert(!icon.availableSizes().empty());
54 if(!icon.isNull() && !icon.availableSizes().empty()) {
55 ui->currentLanguageFlagLabel->setPixmap(icon.pixmap(icon.availableSizes().last()));
58 ui->currentLocaleIconLabel->setPixmap(QPixmap(
":/icons/locate.png"));
59 ui->currentLocaleNameLabel->setText(locale.name());
◆ ui
std::unique_ptr<Ui::LanguageSelectWidget> geometrize::dialog::LanguageSelectWidget::LanguageSelectWidgetImpl::ui |
|
private |
The documentation for this class was generated from the following file:
QIcon getFlagIconForLocaleCode(const QString &localeCode)
getFlagIconForLocaleCode Gets a representative national flag for the given locale code.
Definition: localization.cpp:98
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32