added sqlite3 file to project
This commit is contained in:
parent
e343f2e819
commit
1807fafb06
@ -10,8 +10,13 @@
|
||||
#include "./ui_mainwindow.h"
|
||||
#include <iostream>
|
||||
#include <random>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
QString verse_display();
|
||||
std::string sqlite_func(int day);
|
||||
std::string verse_grab(int day);
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
@ -40,18 +45,18 @@ QString verse_display()
|
||||
{
|
||||
std::string verse_text;
|
||||
int verse_day = random_verse();
|
||||
verse_text = sqlite_func(verse_day);
|
||||
verse_text = verse_grab(verse_day);
|
||||
|
||||
QString returned_string = QString::fromStdString(verse_text);
|
||||
|
||||
|
||||
return "It is receiving text from verse_display()";
|
||||
return returned_string;
|
||||
}
|
||||
|
||||
|
||||
std::string sqlite_func(int day){
|
||||
std::string verse_grab(int day){
|
||||
|
||||
std::string my_verse;
|
||||
|
||||
my_verse = "Hello, this is a verse!";
|
||||
return my_verse;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user