qt-material-widgets/components/autocomplete_internal.h

35 lines
612 B
C
Raw Normal View History

2022-02-17 15:17:19 +00:00
#ifndef AUTOCOMPLETESTATEMACHINE_H
#define AUTOCOMPLETESTATEMACHINE_H
2017-10-15 10:38:53 +00:00
#include <QStateMachine>
2022-02-17 15:17:19 +00:00
#include "autocomplete.h"
2017-10-15 10:38:53 +00:00
namespace md
{
class AutoCompleteStateMachine : public QStateMachine
2017-10-15 10:38:53 +00:00
{
Q_OBJECT
public:
explicit AutoCompleteStateMachine(QWidget *menu);
~AutoCompleteStateMachine();
2017-10-15 10:38:53 +00:00
signals:
void shouldOpen();
void shouldClose();
void shouldFade();
2017-10-15 10:38:53 +00:00
private:
Q_DISABLE_COPY(AutoCompleteStateMachine)
2017-10-15 10:38:53 +00:00
QWidget *const m_menu;
QState *const m_closedState;
QState *const m_openState;
QState *const m_closingState;
2017-10-15 10:38:53 +00:00
};
}
2022-02-17 15:17:19 +00:00
#endif // AUTOCOMPLETESTATEMACHINE_H