KDEUI
klanguagebutton.cpp
Go to the documentation of this file.
130 void KLanguageButton::insertLanguage( const QString &languageCode, const QString &name, int index )
QLayout * layout() const
text
QString i18n(const char *text)
int localeAwareCompare(const QString &other) const
void setFocusPolicy(Qt::FocusPolicy policy)
void insertLanguage(const QString &languageCode, const QString &name=QString(), int index=-1)
Inserts a language into the combo box.
Definition: klanguagebutton.cpp:130
QVariant data() const
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
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void highlighted(const QString &languageCode)
This signal is emitted when a new item is highlighted.
const char * name() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
QString current() const
Returns the language code of the combobox's current item.
Definition: klanguagebutton.cpp:229
void setFocusProxy(QWidget *w)
bool isEmpty() const
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Definition: kstandardaction.cpp:314
QString language() const
void setMargin(int margin)
QLocale locale() const
bool contains(const QString &languageCode) const
Checks whether the specified language is in the popup list.
Definition: klanguagebutton.cpp:224
void setData(const QVariant &userData)
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
QString mid(int position, int n) const
static void checkInsertPos(QMenu *popup, const QString &str, int &index)
Definition: klanguagebutton.cpp:33
QString fromLatin1(const char *str, int size)
bool isValid() const
void sort()
void show()
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
int compare(const QString &other) const
QString toString() 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.