KDEUI
klanguagebutton.cpp
Go to the documentation of this file.
130 void KLanguageButton::insertLanguage( const QString &languageCode, const QString &name, int index )
QString i18n(const char *text)
void insertLanguage(const QString &languageCode, const QString &name=QString(), int index=-1)
Inserts a language into the combo box.
Definition: klanguagebutton.cpp:130
void loadAllLanguages()
Load all known languages into the popup list.
Definition: klanguagebutton.cpp:166
KStandardDirs * dirs()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
void setLocale(const KLocale *locale)
Sets the locale to display language names.
Definition: klanguagebutton.cpp:120
void setCurrentItem(const QString &languageCode)
Sets a given language to be the current item.
Definition: klanguagebutton.cpp:243
QString languageCodeToName(const QString &language) const
void highlighted(const QString &languageCode)
This signal is emitted when a new item is highlighted.
QString current() const
Returns the language code of the combobox's current item.
Definition: klanguagebutton.cpp:229
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Definition: kstandardaction.cpp:314
QString language() const
bool contains(const QString &languageCode) const
Checks whether the specified language is in the popup list.
Definition: klanguagebutton.cpp:224
void activated(const QString &languageCode)
This signal is emitted when a new item is activated.
void insertSeparator(int index=-1)
Inserts a separator item into the combo box.
Definition: klanguagebutton.cpp:158
KLocale * locale()
KLanguageButton(QWidget *parent=0)
Constructs a button whose text is determined by the current language in the popup list...
Definition: klanguagebutton.cpp:76
static void checkInsertPos(QMenu *popup, const QString &str, int &index)
Definition: klanguagebutton.cpp:33
void showLanguageCodes(bool show)
Specifies whether language codes should be shown alongside language names in the popup.
Definition: klanguagebutton.cpp:125
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
T readEntry(const QString &key, const T &aDefault) const
static QString defaultLanguage()
KLanguageButton is a pushbutton which allows a language to be selected from a popup list...
Definition: klanguagebutton.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.