diff --git a/bread.png b/bread.png new file mode 100644 index 0000000..2008893 Binary files /dev/null and b/bread.png differ diff --git a/mainwindow.cpp b/mainwindow.cpp index 182b216..fc4aefc 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,18 +1,40 @@ #include "mainwindow.h" #include "./ui_mainwindow.h" +#include +#include +void verse_display(); MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); + ui->verse->setText("This is a test."); } MainWindow::~MainWindow() { + delete ui; } +//As name implies, randomly chooses a number between 1 and 100. +int random_verse(){ + std::random_device rd; + std:: uniform_int_distribution dist(1, 100); + return dist(rd); +} + +//This is the function that will load the verse into the program. +void verse_display() +{ + std::string verse_text; + int verse_day = random_verse(); + std::cout << verse_day << "\n"; + +} + + void MainWindow::on_exitButton_clicked() { diff --git a/mainwindow.h b/mainwindow.h index b7b8636..07648f3 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -18,6 +18,8 @@ public: private slots: void on_exitButton_clicked(); + + private: Ui::MainWindow *ui; }; diff --git a/mainwindow.ui b/mainwindow.ui index 7d8da75..ba1fb01 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -11,7 +11,11 @@ - MainWindow + Daily Bread + + + + bread.pngbread.png @@ -27,11 +31,11 @@ Go in Peace - + - 160 - 130 + 170 + 90 49 16