KConfigWidgets
klanguagebutton.h
102 void insertLanguage(const QString &languageCode, const QString &name = QString(), int index = -1);
QString current() const
Returns the language code of the combobox's current item.
Definition klanguagebutton.cpp:239
void insertSeparator(int index=-1)
Inserts a separator item into the combo box.
Definition klanguagebutton.cpp:168
void highlighted(const QString &languageCode)
This signal is emitted when a new item is highlighted.
KLanguageButton(QWidget *parent=nullptr)
Constructs a button whose text is determined by the current language in the popup list.
Definition klanguagebutton.cpp:68
void activated(const QString &languageCode)
This signal is emitted when a new item is activated.
void insertLanguage(const QString &languageCode, const QString &name=QString(), int index=-1)
Inserts a language into the combo box.
Definition klanguagebutton.cpp:126
void setCurrentItem(const QString &languageCode)
Sets a given language to be the current item.
Definition klanguagebutton.cpp:255
void showLanguageCodes(bool show)
Specifies whether language codes should be shown alongside language names in the popup.
Definition klanguagebutton.cpp:114
void loadAllLanguages()
Load all known languages into the popup list.
Definition klanguagebutton.cpp:177
bool contains(const QString &languageCode) const
Checks whether the specified language is in the popup list.
Definition klanguagebutton.cpp:234
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void setLocale(const QLocale &locale)
void show()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.