QTfrontend/ui/page/pageoptions.cpp
branch0.9.19
changeset 8902 a94c074fd483
parent 8434 4821897a0f10
child 8924 13ac59499066
--- a/QTfrontend/ui/page/pageoptions.cpp	Tue Apr 16 19:53:52 2013 +0200
+++ b/QTfrontend/ui/page/pageoptions.cpp	Wed Apr 17 14:57:56 2013 +0200
@@ -275,11 +275,13 @@
             winLabelX->setFixedWidth(40);
             winLabelX->setAlignment(Qt::AlignCenter);
 
-            windowWidthEdit = new QLineEdit(groupGame);
-            windowWidthEdit->setValidator(new QIntValidator(this));
+            // TODO: less random max. also:
+            // make some min/max-consts, shared with engine?
+            windowWidthEdit = new QSpinBox(groupGame);
+            windowWidthEdit->setRange(640, 102400);
             windowWidthEdit->setFixedSize(55, CBResolution->height());
-            windowHeightEdit = new QLineEdit(groupGame);
-            windowHeightEdit->setValidator(new QIntValidator(this));
+            windowHeightEdit = new QSpinBox(groupGame);
+            windowHeightEdit->setRange(480, 102400);
             windowHeightEdit->setFixedSize(55, CBResolution->height());
 
             winResLayout->addWidget(windowWidthEdit, 0);