KCodecAction
#include <KCodecAction>
Properties | |
QString | codecName |
Properties inherited from QAction | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
shortcutVisibleInContextMenu | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Properties inherited from QObject | |
objectName | |
Signals | |
void | actionTriggered (QAction *action) |
void | codecNameTriggered (const QByteArray &name) |
void | defaultItemTriggered () |
Signals inherited from KSelectAction | |
void | actionTriggered (QAction *action) |
void | indexTriggered (int index) |
void | textTriggered (const QString &text) |
Protected Slots | |
void | slotActionTriggered (QAction *) override |
Protected Slots inherited from KSelectAction | |
virtual void | slotActionTriggered (QAction *action) |
void | slotToggled (bool) |
Additional Inherited Members | |
Public Types inherited from KSelectAction | |
enum | ToolBarMode |
Public Types inherited from QAction | |
enum | ActionEvent |
enum | MenuRole |
enum | Priority |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Public Attributes inherited from KSelectAction | |
ComboBoxMode | |
MenuMode | |
Public Attributes inherited from QAction | |
AboutQtRole | |
AboutRole | |
ApplicationSpecificRole | |
HighPriority | |
Hover | |
LowPriority | |
NormalPriority | |
NoRole | |
PreferencesRole | |
QuitRole | |
TextHeuristicRole | |
Trigger | |
Protected Member Functions inherited from KSelectAction | |
KWIDGETSADDONS_NO_EXPORT | KSelectAction (KSelectActionPrivate &dd, QObject *parent) |
QWidget * | createWidget (QWidget *parent) override |
void | deleteWidget (QWidget *widget) override |
Protected Member Functions inherited from QWidgetAction | |
QList< QWidget * > | createdWidgets () const const |
virtual bool | event (QEvent *event) override |
virtual bool | eventFilter (QObject *obj, QEvent *event) override |
Protected Member Functions inherited from QAction | |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
Action for selecting one of several text codecs.
This action shows up a submenu with a list of the available codecs on the system.
Definition at line 23 of file kcodecaction.h.
Property Documentation
◆ codecName
|
readwrite |
Definition at line 27 of file kcodecaction.h.
Constructor & Destructor Documentation
◆ KCodecAction() [1/3]
|
explicit |
Definition at line 36 of file kcodecaction.cpp.
◆ KCodecAction() [2/3]
Definition at line 43 of file kcodecaction.cpp.
◆ KCodecAction() [3/3]
KCodecAction::KCodecAction | ( | const QIcon & | icon, |
const QString & | text, | ||
QObject * | parent, | ||
bool | showAutoOptions = false ) |
Definition at line 50 of file kcodecaction.cpp.
Member Function Documentation
◆ codecNameTriggered
|
signal |
Emitted when a codec was selected.
- Parameters
-
name the name of the selected encoding.
Note that textTriggered(const QString &) is emitted too (as defined in KSelectAction).
- Since
- 5.103
◆ currentCodecName()
QString KCodecAction::currentCodecName | ( | ) | const |
Definition at line 105 of file kcodecaction.cpp.
◆ defaultItemTriggered
|
signal |
Emitted when the 'Default' codec action is triggered.
◆ setCurrentCodec()
bool KCodecAction::setCurrentCodec | ( | const QString & | codecName | ) |
Definition at line 110 of file kcodecaction.cpp.
◆ slotActionTriggered
|
overrideprotectedslot |
Definition at line 86 of file kcodecaction.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.