-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaftersearch.h
44 lines (30 loc) · 993 Bytes
/
aftersearch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef AFTERSEARCH_H
#define AFTERSEARCH_H
#include <QJsonArray>
#include <QDialog>
namespace Ui {
class aftersearch;
}
class aftersearch : public QDialog
{
Q_OBJECT
public:
explicit aftersearch(const QString& recipeName = "", const QJsonArray& instructionsArray = QJsonArray(), QWidget *parent = nullptr);
~aftersearch();
// Add member variables for recipe name and steps
QString recipeName;
// QString instructions;
QJsonArray instructionsArray;
void setRecipeName(const QString& recipeName); // Declaration for setting recipe name
void setIngredients(const QString& ingredients); // Declaration for setting ingredients
// void setInstructions(const QString& instructions);
// void setSteps(const QString& steps);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
private:
Ui::aftersearch *ui;
};
#endif // AFTERSEARCH_H