ArchitectureColoredPainting/qt-material-widgets/components/qtmaterialautocomplete.h

34 lines
726 B
C++

#ifndef QTMATERIALAUTOCOMPLETE_H
#define QTMATERIALAUTOCOMPLETE_H
#include "qtmaterialtextfield.h"
class QtMaterialAutoCompletePrivate;
class QtMaterialAutoComplete : public QtMaterialTextField
{
Q_OBJECT
public:
explicit QtMaterialAutoComplete(QWidget *parent = 0);
~QtMaterialAutoComplete();
void setDataSource(const QStringList &data);
signals:
void itemSelected(QString);
protected slots:
void updateResults(QString text);
protected:
bool event(QEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(QtMaterialAutoComplete)
Q_DECLARE_PRIVATE(QtMaterialAutoComplete)
};
#endif // QTMATERIALAUTOCOMPLETE_H