From d2fded145d0cc0f4263705be9a4b6581579d6ab5 Mon Sep 17 00:00:00 2001 From: sleepwithoutbz Date: Fri, 19 Sep 2025 23:22:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=BB=88=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- src/window.cpp | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9571285..b01579a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ set_target_properties(cbh PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE - WIN32_EXECUTABLE TRUE + WIN32_EXECUTABLE FALSE ) include(GNUInstallDirs) diff --git a/src/window.cpp b/src/window.cpp index fe8b409..c3d0ab8 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -18,17 +18,19 @@ #include "ElaToolBar.h" #include "ElaToolButton.h" - #ifdef Q_OS_WIN #include "ElaApplication.h" - // #include "ExamplePage/T_ElaScreen.h" #include #endif -MainWindow::MainWindow(QWidget *parent) : ElaWindow(parent) {} +MainWindow::MainWindow(QWidget *parent) : ElaWindow(parent) { initWindow(); } MainWindow::~MainWindow() {} -void MainWindow::initWindow(){ - +void MainWindow::initWindow() { + qDebug() << "Window: Init the window."; + qDebug() << "Window: Set to fixed size"; + setIsFixedSize(true); + // TODO: Set the subtitle of user info card + setUserInfoCardSubTitle("Nothing!"); }