feat: 添加终端

This commit is contained in:
sleepwithoutbz
2025-09-19 23:22:05 +08:00
parent 4eef5c7fd5
commit d2fded145d
2 changed files with 8 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ set_target_properties(cbh PROPERTIES
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE WIN32_EXECUTABLE FALSE
) )
include(GNUInstallDirs) include(GNUInstallDirs)

View File

@@ -18,17 +18,19 @@
#include "ElaToolBar.h" #include "ElaToolBar.h"
#include "ElaToolButton.h" #include "ElaToolButton.h"
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include "ElaApplication.h" #include "ElaApplication.h"
// #include "ExamplePage/T_ElaScreen.h"
#include <QTimer> #include <QTimer>
#endif #endif
MainWindow::MainWindow(QWidget *parent) : ElaWindow(parent) {} MainWindow::MainWindow(QWidget *parent) : ElaWindow(parent) { initWindow(); }
MainWindow::~MainWindow() {} 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!");
} }