KDEUI
kcodecaction.cpp
Go to the documentation of this file.
76KCodecAction::KCodecAction(const KIcon &icon, const QString &text, QObject *parent,bool showAutoOptions)
99 KEncodingDetector::AutoDetectScript scri=KEncodingDetector::scriptForName(encodingsForScript.at(0));
QString encodingForName(const QString &descriptiveName) const
QTextCodec * codecForName(const QString &n, bool &ok) const
void defaultItemTriggered()
If showAutoOptions==true, then better handle triggered(KEncodingDetector::AutoDetectScript) signal.
bool setCurrentAutoDetectScript(KEncodingDetector::AutoDetectScript)
Applicable only if showAutoOptions in c'tor was true.
Definition kcodecaction.cpp:253
int mibForName(const QString &codecName, bool *ok=0) const
Definition kcodecaction.cpp:117
KCodecAction(QObject *parent, bool showAutoOptions=false)
Definition kcodecaction.cpp:62
KEncodingDetector::AutoDetectScript currentAutoDetectScript() const
Applicable only if showAutoOptions in c'tor was true.
Definition kcodecaction.cpp:246
static AutoDetectScript scriptForName(const QString &lang)
AutoDetectScript
SemiautomaticDetection
static bool hasAutoDetectionForScript(AutoDetectScript)
virtual void addAction(QAction *action)
Add action to the list of selectable actions.
Definition kselectaction.cpp:230
bool setCurrentAction(QAction *action)
Sets the currently checked item.
Definition kselectaction.cpp:133
@ MenuMode
Creates a button which pops up a menu when interacted with, as defined by toolButtonPopupMode().
Definition kselectaction.h:108
QList< QAction * > actions() const
Returns the list of selectable actions.
Definition kselectaction.cpp:110
void setToolBarMode(ToolBarMode mode)
Set the type of widget to be inserted in a toolbar to mode.
Definition kselectaction.cpp:434
#define kWarning
QString i18nc(const char *ctxt, const char *text)
KCharsets * charsets()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.