#ifndef WINDOW_H
#define WINDOW_H

#include <QWidget>
#include <QMainWindow>
#include <QDir>
#include <QLineEdit>
#include <QListWidget>
#include <QComboBox>
#include <QtSql>
#include <map>

class QLabel;
class QPushButton;

class SearchBox: public QLineEdit
{
    Q_OBJECT

public:
    using QLineEdit::QLineEdit;

private:
    void keyPressEvent(QKeyEvent *evt);

signals:
    void inputText(QString searchText);

private slots:
    void recipeFiterChanged(QString newFilter);
};


class Window : public QMainWindow
{
    Q_OBJECT

public:
    Window(QWidget *parent = 0);

private slots:
    void openFile(QListWidgetItem *recipe);
    void updateRecipesDiplay(QString searchText);

private:
    void resizeEvent(QResizeEvent *event);
    void createRecipeList();
    void updateDatabase();
    void cleanDatabase();

    QList<QListWidgetItem*> getRecipeList(QString searchText);
    QList<QListWidgetItem*> getAllRecipes();
    QList<QListWidgetItem*> getMatchingRecipes(QString searchText);
    std::map<double, QStringList> findMatches(QString text);

    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");

    QMenu *optionsMenu;
    QAction *updateDb;
    QAction *cleanDb;

    QWidget *centralWidget;
    SearchBox *searchBox;
    QDir currentDir;
    QListWidget *recipeList;
    QComboBox *recipeBox;
    QLabel *numResults;
    QWebEngineView *webView;
};

#endif

#ifndef WINDOW_H
#define WINDOW_H

#include <QWidget>
#include <QMainWindow>
#include <QDir>
#include <QLineEdit>
#include <QListWidget>
#include <QComboBox>
#include <QtSql>
#include <map>

class QLabel;
class QPushButton;

class SearchBox: public QLineEdit
{
    Q_OBJECT

public:
    using QLineEdit::QLineEdit;

private:
    void keyPressEvent(QKeyEvent *evt);

signals:
    void inputText(QString searchText);

private slots:
    void recipeFiterChanged(QString newFilter);
};


class Window : public QMainWindow
{
    Q_OBJECT

public:
    Window(QWidget *parent = 0);

private slots:
    void openFile(QListWidgetItem *recipe);
    void updateRecipesDiplay(QString searchText);

private:
    void resizeEvent(QResizeEvent *event);
    void createRecipeList();
    void updateDatabase();
    void cleanDatabase();

    QList<QListWidgetItem*> getRecipeList(QString searchText);
    QList<QListWidgetItem*> getAllRecipes();
    QList<QListWidgetItem*> getMatchingRecipes(QString searchText);
    std::map<double, QStringList> findMatches(QString text);

    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");

    QMenu *optionsMenu;
    QAction *updateDb;
    QAction *cleanDb;

    QWidget *centralWidget;
    SearchBox *searchBox;
    QDir currentDir;
    QListWidget *recipeList;
    QComboBox *recipeBox;
    QLabel *numResults;
};

#endif

Remove further references to QWebEngine
Remove further references to QWebEngine
