mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
删除SpkWindow::SetWindowStyle
This commit is contained in:
@@ -244,19 +244,6 @@ void SpkWindow::SetCornerRadius(int radius)
|
|||||||
mCornerRadius = radius;
|
mCornerRadius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpkWindow::SetWindowTheme(SpkWindow::SpkWindowStyle style)
|
|
||||||
{
|
|
||||||
switch(style)
|
|
||||||
{
|
|
||||||
case Light:
|
|
||||||
SpkUi::SetGlobalStyle(SpkUi::SpkUiStyle::Light);
|
|
||||||
break;
|
|
||||||
case Dark:
|
|
||||||
SpkUi::SetGlobalStyle(SpkUi::SpkUiStyle::Dark);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void SpkWindow::PopulateUi()
|
void SpkWindow::PopulateUi()
|
||||||
{
|
{
|
||||||
mCentralWidget = new QWidget(this);
|
mCentralWidget = new QWidget(this);
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ class SpkWindow : public QMainWindow
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void SetCornerRadius(int);
|
void SetCornerRadius(int);
|
||||||
void SetWindowTheme(SpkWindowStyle);
|
|
||||||
void SetUseTitleBar(bool);
|
void SetUseTitleBar(bool);
|
||||||
void SetResizable(bool a) { mResizable = a; }
|
void SetResizable(bool a) { mResizable = a; }
|
||||||
void SetCentralMargin(int, int, int, int);
|
void SetCentralMargin(int, int, int, int);
|
||||||
|
|||||||
Reference in New Issue
Block a user