First step for copy constructor

This commit is contained in:
iutbgdin 2025-06-18 15:09:29 +02:00
parent 9b02342369
commit 7ce7ca9df5
3 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#include "mainwindow.h"
#include "path.h"
#include <QApplication>
int main(int argc, char *argv[])

13
path.cpp Normal file
View File

@ -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(){
}

View File

@ -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