ArchitectureColoredPainting/qt-material-widgets/components/qtmaterialautocomplete_inte...

30 lines
673 B
C
Raw Normal View History

2023-03-06 12:38:25 +08:00
#ifndef QTMATERIALAUTOCOMPLETESTATEMACHINE_H
#define QTMATERIALAUTOCOMPLETESTATEMACHINE_H
#include <QStateMachine>
#include "qtmaterialautocomplete.h"
class QtMaterialAutoCompleteStateMachine : public QStateMachine
{
Q_OBJECT
public:
explicit QtMaterialAutoCompleteStateMachine(QWidget *menu);
~QtMaterialAutoCompleteStateMachine();
signals:
void shouldOpen();
void shouldClose();
void shouldFade();
private:
Q_DISABLE_COPY(QtMaterialAutoCompleteStateMachine)
QWidget *const m_menu;
QState *const m_closedState;
QState *const m_openState;
QState *const m_closingState;
};
#endif // QTMATERIALAUTOCOMPLETESTATEMACHINE_H