File indexing completed on 2024-04-21 14:54:22

0001 #ifndef KCODECACTION_TEST_H
0002 #define KCODECACTION_TEST_H
0003 
0004 #include <QMainWindow>
0005 #include <QTextCodec>
0006 
0007 #include "kcodecaction.h"
0008 
0009 class CodecActionTest : public QMainWindow
0010 {
0011     Q_OBJECT
0012 
0013 public:
0014     CodecActionTest(QWidget *parent = nullptr);
0015 
0016 public Q_SLOTS:
0017     void actionTriggered(QAction *action);
0018     void indexTriggered(int index);
0019     void textTriggered(const QString &text);
0020 #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 103)
0021     void codecTriggered(QTextCodec *codec);
0022 #endif
0023     void nameTriggered(const QString &name);
0024 
0025     void slotActionTriggered(bool state);
0026 
0027 private:
0028     KCodecAction *m_comboCodec;
0029     KCodecAction *m_buttonCodec;
0030 };
0031 
0032 #endif