mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
更换SpkWindow基类为QWidget并修复多个问题
修复mResizable为false时阻止窗口移动的问题 更改About窗口为固定大小
This commit is contained in:
@@ -18,9 +18,11 @@ SpkMainWindow::SpkMainWindow(QWidget *parent) : SpkWindow(parent)
|
||||
SetTitleBar(ui->TitleBar, false);
|
||||
RefreshCategoryData();
|
||||
|
||||
auto size = QGuiApplication::primaryScreen()->size() * 0.25;
|
||||
resize(QGuiApplication::primaryScreen()->size() * 0.5);
|
||||
move(size.width(), size.height());
|
||||
auto size = QGuiApplication::primaryScreen()->size() * 0.5;
|
||||
size = size.expandedTo(QSize(900, 600));
|
||||
resize(size);
|
||||
auto pos = QGuiApplication::primaryScreen()->size() * 0.5 - size * 0.5;
|
||||
move(pos.width(), pos.height());
|
||||
}
|
||||
|
||||
void SpkMainWindow::SwitchDayNightTheme()
|
||||
|
||||
Reference in New Issue
Block a user