QTfrontend/ui/page/pageoptions.cpp
branch0.9.19
changeset 8902 a94c074fd483
parent 8434 4821897a0f10
child 8924 13ac59499066
equal deleted inserted replaced
8900:b77fd3c2eec5 8902:a94c074fd483
   273             QLabel *winLabelX = new QLabel(groupGame);
   273             QLabel *winLabelX = new QLabel(groupGame);
   274             winLabelX->setText("x"); // decorational x
   274             winLabelX->setText("x"); // decorational x
   275             winLabelX->setFixedWidth(40);
   275             winLabelX->setFixedWidth(40);
   276             winLabelX->setAlignment(Qt::AlignCenter);
   276             winLabelX->setAlignment(Qt::AlignCenter);
   277 
   277 
   278             windowWidthEdit = new QLineEdit(groupGame);
   278             // TODO: less random max. also:
   279             windowWidthEdit->setValidator(new QIntValidator(this));
   279             // make some min/max-consts, shared with engine?
       
   280             windowWidthEdit = new QSpinBox(groupGame);
       
   281             windowWidthEdit->setRange(640, 102400);
   280             windowWidthEdit->setFixedSize(55, CBResolution->height());
   282             windowWidthEdit->setFixedSize(55, CBResolution->height());
   281             windowHeightEdit = new QLineEdit(groupGame);
   283             windowHeightEdit = new QSpinBox(groupGame);
   282             windowHeightEdit->setValidator(new QIntValidator(this));
   284             windowHeightEdit->setRange(480, 102400);
   283             windowHeightEdit->setFixedSize(55, CBResolution->height());
   285             windowHeightEdit->setFixedSize(55, CBResolution->height());
   284 
   286 
   285             winResLayout->addWidget(windowWidthEdit, 0);
   287             winResLayout->addWidget(windowWidthEdit, 0);
   286             winResLayout->addWidget(winLabelX, 0);
   288             winResLayout->addWidget(winLabelX, 0);
   287             winResLayout->addWidget(windowHeightEdit, 0);
   289             winResLayout->addWidget(windowHeightEdit, 0);