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 "mainwindow.h"
|
||||||
|
|
||||||
|
#include "path.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
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 += \
|
SOURCES += \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
mainwindow.cpp
|
mainwindow.cpp \
|
||||||
|
path.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
mainwindow.h
|
mainwindow.h \
|
||||||
|
path.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
mainwindow.ui
|
mainwindow.ui
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user