First step for copy constructor
This commit is contained in:
parent
9b02342369
commit
7ce7ca9df5
2
main.cpp
2
main.cpp
@ -1,5 +1,7 @@
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "path.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
13
path.cpp
Normal file
13
path.cpp
Normal 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(){
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user