设定子窗口为模态
This commit is contained in:
parent
9e987b6ffb
commit
0593339746
@ -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为右下角点
|
||||
|
@ -30,7 +30,6 @@ private:
|
||||
bool m_press;
|
||||
int m_border_width;
|
||||
Orient ori;
|
||||
|
||||
sui_title *m_title;
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user