mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
41 lines
924 B
C++
41 lines
924 B
C++
#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 itemText;
|
|
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
|