quill/searchresultswidget.h

42 lines
920 B
C
Raw Normal View History

#ifndef SEARCHRESULTSWIDGET_H
#define SEARCHRESULTSWIDGET_H
#include <QWidget>
#include <QStringListModel>
#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 item;
bool libraryResults;
private slots:
void on_openBtn_clicked();
void on_backBtn_clicked();
void showToastNative(QString messageToDisplay);
void closeIndefiniteToastNative();
private:
Ui::searchResultsWidget *ui;
bookInfoDialog * bookInfoDialogWindow;
signals:
void openBookFile(QString book, bool relativePath);
void showToast(QString messageToDisplay);
void closeIndefiniteToast();
void hideDialog();
};
#endif // SEARCHRESULTSWIDGET_H