QTfrontend/pages.cpp
branchexperimental3D
changeset 3694 3e9c0634065c
parent 3690 c247dee9e1c0
child 3696 6009d8378422
--- a/QTfrontend/pages.cpp	Mon Aug 02 12:24:06 2010 +0200
+++ b/QTfrontend/pages.cpp	Mon Aug 02 15:05:56 2010 +0200
@@ -39,7 +39,7 @@
 #include <QMenu>
 #include <QDataWidgetMapper>
 #include <QTime>
-
+#include <QSlider>
 
 #include "ammoSchemeModel.h"
 #include "pages.h"
@@ -573,6 +573,7 @@
 
             QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
             QHBoxLayout * GBAreslayout = new QHBoxLayout(0);
+            QHBoxLayout * GBAqualayout = new QHBoxLayout(0);
 
             CBFrontendFullscreen = new QCheckBox(AGGroupBox);
             CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen"));
@@ -608,9 +609,17 @@
             CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
             GBAlayout->addWidget(CBFullscreen);
 
-            CBReduceQuality = new QCheckBox(AGGroupBox);
-            CBReduceQuality->setText(QCheckBox::tr("Reduced quality"));
-            GBAlayout->addWidget(CBReduceQuality);
+            QLabel * quality = new QLabel(AGGroupBox);
+            quality->setText(QLabel::tr("Quality"));
+            GBAqualayout->addWidget(quality);
+            
+            SLQuality = new QSlider(Qt::Horizontal, AGGroupBox);
+            SLQuality->setTickPosition(QSlider::TicksBelow);
+            SLQuality->setMaximum(5);
+            SLQuality->setMinimum(0);
+            SLQuality->setFixedWidth(150);
+            GBAqualayout->addWidget(SLQuality);
+            GBAlayout->addLayout(GBAqualayout);
 
             CBEnableStereo = new QCheckBox(AGGroupBox);
             CBEnableStereo->setText(QCheckBox::tr("Anaglyph rendering (red/cyan)"));