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 49e63b7 commit 2cc908d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ target_include_directories(unlogic PUBLIC ${LLVM_INCLUDE_DIRS} src)
# CALCULATOR
qt_add_executable(unlogic-calculator
src/calculator/main.cpp
src/calculator/Window.cpp
src/calculator/Window.h
)
target_link_libraries(unlogic-calculator PRIVATE Qt6::Widgets)
set_target_properties(unlogic-calculator PROPERTIES
Expand Down
5 changes: 3 additions & 2 deletions src/calculator/main.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#include <QApplication>
#include <QtWidgets/QtWidgets>
#include "Window.h"

int main(int argc, char **argv)
{
QApplication app(argc, argv);

QWidget window;
window.resize(100, 100);
ui::Window window;
window.resize(1000, 500);
window.show();

return app.exec();
Expand Down

0 comments on commit 2cc908d

Please sign in to comment.