KDEUI
kcodecaction.cpp
Go to the documentation of this file.
76 KCodecAction::KCodecAction(const KIcon &icon, const QString &text, QObject *parent,bool showAutoOptions)
99 KEncodingDetector::AutoDetectScript scri=KEncodingDetector::scriptForName(encodingsForScript.at(0));
text
QTextCodec * codecForName(const QString &name) const
void defaultItemTriggered()
If showAutoOptions==true, then better handle triggered(KEncodingDetector::AutoDetectScript) signal...
KEncodingDetector::AutoDetectScript currentAutoDetectScript() const
Applicable only if showAutoOptions in c'tor was true.
Definition: kcodecaction.cpp:246
QVariant data() const
const T & at(int i) const
bool setCurrentCodec(QTextCodec *codec)
Definition: kcodecaction.cpp:196
virtual void addAction(QAction *action)
Add action to the list of selectable actions.
Definition: kselectaction.cpp:230
QTextCodec * codecForLocale()
static AutoDetectScript scriptForName(const QString &lang)
QString i18nc(const char *ctxt, const char *text)
int size() const
AutoDetectScript
int mibForName(const QString &codecName, bool *ok=0) const
Definition: kcodecaction.cpp:117
uint toUInt(bool *ok) const
bool isNull() const
KCharsets * charsets()
QString encodingForName(const QString &descriptiveName) const
QList< QAction * > actions() const
Returns the list of selectable actions.
Definition: kselectaction.cpp:110
virtual int mibEnum() const =0
void setCheckable(bool)
static bool hasAutoDetectionForScript(AutoDetectScript)
bool setCurrentAutoDetectScript(KEncodingDetector::AutoDetectScript)
Applicable only if showAutoOptions in c'tor was true.
Definition: kcodecaction.cpp:253
QTextCodec * codecForMib(int mib)
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QObject * parent() const
bool setCurrentAction(QAction *action)
Sets the currently checked item.
Definition: kselectaction.cpp:133
KCodecAction(QObject *parent, bool showAutoOptions=false)
Definition: kcodecaction.cpp:62
virtual void actionTriggered(QAction *)
Definition: kcodecaction.cpp:161
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.