diff --git a/src/calculator/Window.cpp b/src/calculator/Window.cpp new file mode 100644 index 0000000..8881976 --- /dev/null +++ b/src/calculator/Window.cpp @@ -0,0 +1,8 @@ +// +// Created by Nathan on 11/12/2024. +// + +#include "Window.h" + +namespace ui { +} // ui \ No newline at end of file diff --git a/src/calculator/Window.h b/src/calculator/Window.h new file mode 100644 index 0000000..c8f0fa6 --- /dev/null +++ b/src/calculator/Window.h @@ -0,0 +1,32 @@ +// +// Created by Nathan on 11/12/2024. +// + +#ifndef WINDOW_H +#define WINDOW_H + +#include +#include +#include + +namespace ui +{ + class Window : public QMainWindow + { + QGridLayout *layout_ = nullptr; + QTextEdit *editor_ = nullptr; + + public: + Window() + { + this->layout_ = new QGridLayout; + + this->editor_ = new QTextEdit; + this->layout_->addWidget(this->editor_); + + this->setLayout(this->layout_); + } + }; +} + +#endif //WINDOW_H