PinYinChar.h 506 B

123456789101112131415161718192021222324252627
  1. #ifndef PINYINCHAR_H
  2. #define PINYINCHAR_H
  3. #include <QObject>
  4. class DialogSoftKeyboard;
  5. class QPushButton;
  6. class PinYinChar : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit PinYinChar(QObject *parent = 0);
  11. private:
  12. DialogSoftKeyboard *input;
  13. QList<QPushButton *> btns;
  14. public slots:
  15. void setInput(DialogSoftKeyboard *input);
  16. void setBtns(QList<QPushButton *> btns);
  17. //改变字符类型
  18. void setCharType(quint8 charType, QPushButton *btnChar);
  19. };
  20. #endif // PINYINCHAR_H