#ifndef MIXWITHCOMBOXINPUT_H #define MIXWITHCOMBOXINPUT_H #include class MixWithComboxInput : public QStackedWidget { Q_OBJECT public: explicit MixWithComboxInput(QWidget *parent = 0); ~MixWithComboxInput() override; bool isFlat() const; void setFlat(bool flat); void setInputLevels(const QStringList &levels); QString currentInputLevel() const; bool eventFilter(QObject *watched, QEvent *event) override; public slots: void setCurrentInputLevel(const QString &level); Q_SIGNALS: void inputLevelChanged(const QString &level); protected: void enterEvent(QEvent *event) override; void leaveEvent(QEvent *event) override; void keyPressEvent(QKeyEvent *event) override; private: class Private; Private *const d; }; #endif // MIXWITHCOMBOXINPUT_H