diff --git a/main.cpp b/main.cpp index fd3e533..33dea00 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,7 @@ #include "mainwindow.h" +#include "path.h" + #include int main(int argc, char *argv[]) diff --git a/path.cpp b/path.cpp new file mode 100644 index 0000000..ab0fdfb --- /dev/null +++ b/path.cpp @@ -0,0 +1,13 @@ +#include "path.h" + + +Path::Path(QFile *file){ + QTextStream in(&file); + QString text = in.readAll(); + ui->textEdit->setText(text); + file.close(); +} +void Path::addStep(){ + +} + diff --git a/sae201.pro b/sae201.pro index b915c09..027fe54 100644 --- a/sae201.pro +++ b/sae201.pro @@ -10,10 +10,12 @@ CONFIG += c++17 SOURCES += \ main.cpp \ - mainwindow.cpp + mainwindow.cpp \ + path.cpp HEADERS += \ - mainwindow.h + mainwindow.h \ + path.h FORMS += \ mainwindow.ui