feat: 添加新页面

This commit is contained in:
sleepwithoutbz
2025-09-21 18:35:32 +08:00
parent 91d314a888
commit 9fe3007600
9 changed files with 381 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
#include <QMouseEvent>
#include "ElaContentDialog.h"
#include "ElaDef.h"
#include "ElaDockWidget.h"
#include "ElaEventBus.h"
#include "ElaLog.h"
@@ -17,6 +18,7 @@
#include "ElaTheme.h"
#include "ElaToolBar.h"
#include "ElaToolButton.h"
#include "UI/CBTable.h"
#ifdef Q_OS_WIN
#include "ElaApplication.h"
@@ -29,9 +31,13 @@ MainWindow::~MainWindow() {}
void MainWindow::initWindow() {
qDebug() << "Window: Init the window.";
qDebug() << "Window: Set to fixed size";
// setIsFixedSize(true);
setNavigationBarDisplayMode(ElaNavigationType::NavigationDisplayMode::Minimal);
resize(480, 640);
setIsFixedSize(true);
// TODO: Set the subtitle of user info card
setUserInfoCardSubTitle("Nothing!");
// resize(600,480);
_tablePage = new CBTable(this);
addPageNode("剪贴板历史", _tablePage, ElaIconType::TableTree);
}