qt-material-widgets/components/autocomplete_internal.h

40 lines
734 B
C++

#ifndef AUTOCOMPLETESTATEMACHINE_H
#define AUTOCOMPLETESTATEMACHINE_H
#include <QtWidgets/QGraphicsOpacityEffect>
#include <QStateMachine>
#include <QSignalTransition>
#include <QPropertyAnimation>
#include <QDebug>
#include "autocomplete.h"
namespace md
{
class AutoCompleteStateMachine : public QStateMachine
{
Q_OBJECT
public:
explicit AutoCompleteStateMachine(QWidget *menu);
~AutoCompleteStateMachine();
signals:
void shouldOpen();
void shouldClose();
void shouldFade();
private:
Q_DISABLE_COPY(AutoCompleteStateMachine)
QWidget *const m_menu;
QState *const m_closedState;
QState *const m_openState;
QState *const m_closingState;
};
}
#endif // AUTOCOMPLETESTATEMACHINE_H