From 2cc908da54466c402f1e69b6d2de4e2d648221b7 Mon Sep 17 00:00:00 2001 From: Nathan Seymour Date: Tue, 12 Nov 2024 10:36:43 -0600 Subject: [PATCH] add basic window; --- CMakeLists.txt | 2 ++ src/calculator/main.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f47524a..c18c50b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/calculator/main.cpp b/src/calculator/main.cpp index dd97a8f..1646c1d 100644 --- a/src/calculator/main.cpp +++ b/src/calculator/main.cpp @@ -1,12 +1,13 @@ #include #include +#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();