#ifndef QSEARCHFIELD_H
#define QSEARCHFIELD_H

#include <QWidget>

#include "dllmacro.h"

class QSearchFieldPrivate;
class DLLEXPORT QSearchField : public QWidget
{
    Q_OBJECT
public:
    explicit QSearchField(QWidget* parent);

    QString text() const;

public slots:
    void setText(const QString &text);
    void setPlaceholderText(const QString& text);

    void clear();
signals:
    void textChanged(const QString &text);
    void returnPressed();

private:
    friend class QSearchFieldPrivate;
    QSearchFieldPrivate *pimpl;
};

#endif // QSEARCHFIELD_H
