opti:修正初始尺寸显示。
This commit is contained in:
parent
2f119e8273
commit
4320c57d8f
@ -21,8 +21,9 @@ MainWidget::MainWidget(QWidget* parent) : QWidget(parent), ui(new Ui::MainWidget
|
||||
|
||||
QScreen* primaryScreen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeometry = primaryScreen->geometry();
|
||||
setMinimumWidth(screenGeometry.width() * 0.5);
|
||||
setMinimumHeight(screenGeometry.height() * 0.9);
|
||||
|
||||
setBaseSize(screenGeometry.width() * 0.6, screenGeometry.height() * 0.9);
|
||||
|
||||
// setMinimumWidth(900);
|
||||
// setMinimumHeight(800);
|
||||
|
||||
@ -173,8 +174,7 @@ void MainWidget::show_custom_menu()
|
||||
|
||||
if (indexList.size() == 1) {
|
||||
menu_simple_->exec(QCursor::pos());
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
menu_multi_->exec(QCursor::pos());
|
||||
}
|
||||
}
|
||||
@ -302,8 +302,7 @@ void MainWidget::read(const QString& file_path)
|
||||
|
||||
if (base_.allow_max_width < 0 || base_.allow_max_width > 1000) {
|
||||
allow_max_with_ = 100;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
allow_max_with_ = base_.allow_max_width;
|
||||
}
|
||||
|
||||
@ -653,14 +652,11 @@ void MainWidget::copy_multi_data()
|
||||
|
||||
if (ui->rbAllPage->isChecked()) {
|
||||
get_related_elements(vec, AREA_ALL_PAGE);
|
||||
}
|
||||
else if (ui->rbReplaceSelect->isChecked()) {
|
||||
} else if (ui->rbReplaceSelect->isChecked()) {
|
||||
get_related_elements(vec, AREA_SELECT);
|
||||
}
|
||||
else if (ui->rbRepCurPage->isChecked()) {
|
||||
} else if (ui->rbRepCurPage->isChecked()) {
|
||||
get_related_elements(vec, AREA_CUR_PAGE);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
get_related_elements(vec, AREA_ALL);
|
||||
}
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1279</width>
|
||||
<height>805</height>
|
||||
<width>1048</width>
|
||||
<height>682</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
Loading…
x
Reference in New Issue
Block a user