Skip to content

Commit

Permalink
add basic window;
Browse files Browse the repository at this point in the history
  • Loading branch information
NateSeymour committed Nov 12, 2024
1 parent 2cc908d commit d63d0e6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/calculator/Window.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// Created by Nathan on 11/12/2024.
//

#include "Window.h"

namespace ui {
} // ui
32 changes: 32 additions & 0 deletions src/calculator/Window.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// Created by Nathan on 11/12/2024.
//

#ifndef WINDOW_H
#define WINDOW_H

#include <QGridLayout>
#include <QMainWindow>
#include <QTextEdit>

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

0 comments on commit d63d0e6

Please sign in to comment.