mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-25 23:09:44 +08:00
修复 低分辨率下默认只显示1列
This commit is contained in:
12
main.cpp
12
main.cpp
@@ -22,18 +22,18 @@ int main(int argc, char *argv[])
|
|||||||
int d_w=s->width();
|
int d_w=s->width();
|
||||||
int d_h=s->height();
|
int d_h=s->height();
|
||||||
if(d_w<=1366){
|
if(d_w<=1366){
|
||||||
w.setMinimumWidth(350);
|
w.setMinimumWidth(840);
|
||||||
w.resize(835,640);
|
w.resize(840,650);
|
||||||
}else if(d_w<=1920){
|
}else if(d_w<=1920){
|
||||||
w.setMinimumWidth(1140);
|
w.setMinimumWidth(1180);
|
||||||
w.resize(1180,760);
|
w.resize(1180,760);
|
||||||
}else {
|
}else {
|
||||||
w.setMinimumWidth(1140);
|
w.setMinimumWidth(1180);
|
||||||
w.resize(1180,760);
|
w.resize(1180,760);
|
||||||
}
|
}
|
||||||
if(d_h<=768){
|
if(d_h<=768){
|
||||||
w.setMinimumHeight(640);
|
w.setMinimumHeight(650);
|
||||||
w.resize(835,640);
|
w.resize(840,650);
|
||||||
}else if(d_h<=1080){
|
}else if(d_h<=1080){
|
||||||
w.setMinimumHeight(760);
|
w.setMinimumHeight(760);
|
||||||
w.resize(1180,760);
|
w.resize(1180,760);
|
||||||
|
|||||||
Reference in New Issue
Block a user