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