#ifndef SEARCHRESULTSWIDGET_H #define SEARCHRESULTSWIDGET_H #include #include #include "bookinfodialog.h" namespace Ui { class searchResultsWidget; } class searchResultsWidget : public QWidget { Q_OBJECT public: explicit searchResultsWidget(QWidget *parent = nullptr); ~searchResultsWidget(); void setListViewContents(QStringList searchResults); QModelIndex index; QString itemText; bool libraryResults; private slots: void on_openBtn_clicked(); void on_backBtn_clicked(); private: Ui::searchResultsWidget *ui; bookInfoDialog * bookInfoDialogWindow; signals: void openBookFile(QString book, bool relativePath); }; #endif // SEARCHRESULTSWIDGET_H