diff --git a/src/sui.cpp b/src/sui.cpp index f6a27b3..7c8fe24 100644 --- a/src/sui.cpp +++ b/src/sui.cpp @@ -44,7 +44,6 @@ void sui::paintEvent(QPaintEvent *event) painter.drawRoundedRect(this->rect(), 10, 10); QWidget::paintEvent(event); } - void sui::region(const QPoint ¤tGlobalPoint) { // 获取窗体在屏幕上的位置区域,topLeft为坐上角点,rightButton为右下角点 diff --git a/src/sui.h b/src/sui.h index 07e6eb5..3558046 100644 --- a/src/sui.h +++ b/src/sui.h @@ -30,8 +30,7 @@ private: bool m_press; int m_border_width; Orient ori; - - sui_title *m_title; + sui_title *m_title; protected: void paintEvent(QPaintEvent *event); void showEvent(QShowEvent *event); diff --git a/src/xsteam_ui.cpp b/src/xsteam_ui.cpp index f5b42ec..6a1c012 100644 --- a/src/xsteam_ui.cpp +++ b/src/xsteam_ui.cpp @@ -498,6 +498,7 @@ void xsteam_ui::slots_push_manifest() { xs_push_manifest->setMaximumSize(width(), height() - 30); xs_push_manifest->setGeometry(geometry()); + xs_push_manifest->setWindowModality(Qt::ApplicationModal); xs_push_manifest->show(); } } @@ -509,6 +510,7 @@ void xsteam_ui::slots_open_server_edit() xs_src_edit_ui->setMaximumSize(width(), height()- 30); xs_src_edit_ui->setGeometry(geometry()); connect(xs_src_edit_ui, SIGNAL(signals_update()), this, SLOT(slots_server_combobox_load_data())); + xs_src_edit_ui->setWindowModality(Qt::ApplicationModal); xs_src_edit_ui->show(); } } @@ -519,6 +521,7 @@ void xsteam_ui::slots_open_update() { xs_update_ui->setMaximumSize(width() / 2, height()); xs_update_ui->setGeometry(geometry()); + xs_update_ui->setWindowModality(Qt::ApplicationModal); xs_update_ui->show(); } } @@ -529,6 +532,7 @@ void xsteam_ui::slots_open_setting() { xs_sets_ui->setMaximumSize(width(), height()- 30); xs_sets_ui->setGeometry(geometry()); + xs_sets_ui->setWindowModality(Qt::ApplicationModal); xs_sets_ui->show(); } } @@ -539,6 +543,7 @@ void xsteam_ui::slots_open_about() { xs_about_ui->setMaximumSize(width() / 2, height()); xs_about_ui->setGeometry(geometry()); + xs_about_ui->setWindowModality(Qt::ApplicationModal); xs_about_ui->show(); } }