MixWithComboxInput.h 833 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef MIXWITHCOMBOXINPUT_H
  2. #define MIXWITHCOMBOXINPUT_H
  3. #include <QStackedWidget>
  4. class MixWithComboxInput : public QStackedWidget
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit MixWithComboxInput(QWidget *parent = 0);
  9. ~MixWithComboxInput() override;
  10. bool isFlat() const;
  11. void setFlat(bool flat);
  12. void setInputLevels(const QStringList &levels);
  13. QString currentInputLevel() const;
  14. bool eventFilter(QObject *watched, QEvent *event) override;
  15. public slots:
  16. void setCurrentInputLevel(const QString &level);
  17. Q_SIGNALS:
  18. void inputLevelChanged(const QString &level);
  19. protected:
  20. void enterEvent(QEvent *event) override;
  21. void leaveEvent(QEvent *event) override;
  22. void keyPressEvent(QKeyEvent *event) override;
  23. private:
  24. class Private;
  25. Private *const d;
  26. };
  27. #endif // MIXWITHCOMBOXINPUT_H