QTfrontend/pages.cpp
changeset 3708 64e059b6f9c5
parent 3697 d5b30d6373fc
child 3714 c407f00d2851
equal deleted inserted replaced
3706:a79784328c03 3708:64e059b6f9c5
    37 #include <QTableWidget>
    37 #include <QTableWidget>
    38 #include <QAction>
    38 #include <QAction>
    39 #include <QMenu>
    39 #include <QMenu>
    40 #include <QDataWidgetMapper>
    40 #include <QDataWidgetMapper>
    41 #include <QTime>
    41 #include <QTime>
    42 
    42 #include <QSlider>
    43 
    43 
    44 #include "ammoSchemeModel.h"
    44 #include "ammoSchemeModel.h"
    45 #include "pages.h"
    45 #include "pages.h"
    46 #include "sdlkeys.h"
    46 #include "sdlkeys.h"
    47 #include "hwconsts.h"
    47 #include "hwconsts.h"
   571             //AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
   571             //AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
   572             AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   572             AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   573 
   573 
   574             QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   574             QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   575             QHBoxLayout * GBAreslayout = new QHBoxLayout(0);
   575             QHBoxLayout * GBAreslayout = new QHBoxLayout(0);
       
   576             QHBoxLayout * GBAqualayout = new QHBoxLayout(0);
   576 
   577 
   577             CBFrontendFullscreen = new QCheckBox(AGGroupBox);
   578             CBFrontendFullscreen = new QCheckBox(AGGroupBox);
   578             CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen"));
   579             CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen"));
   579             GBAlayout->addWidget(CBFrontendFullscreen);
   580             GBAlayout->addWidget(CBFrontendFullscreen);
   580 
   581 
   606 
   607 
   607             CBFullscreen = new QCheckBox(AGGroupBox);
   608             CBFullscreen = new QCheckBox(AGGroupBox);
   608             CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
   609             CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
   609             GBAlayout->addWidget(CBFullscreen);
   610             GBAlayout->addWidget(CBFullscreen);
   610 
   611 
   611             CBReduceQuality = new QCheckBox(AGGroupBox);
   612             QLabel * quality = new QLabel(AGGroupBox);
   612             CBReduceQuality->setText(QCheckBox::tr("Reduced quality"));
   613             quality->setText(QLabel::tr("Quality"));
   613             GBAlayout->addWidget(CBReduceQuality);
   614             GBAqualayout->addWidget(quality);
       
   615             
       
   616             SLQuality = new QSlider(Qt::Horizontal, AGGroupBox);
       
   617             SLQuality->setTickPosition(QSlider::TicksBelow);
       
   618             SLQuality->setMaximum(5);
       
   619             SLQuality->setMinimum(0);
       
   620             SLQuality->setFixedWidth(150);
       
   621             GBAqualayout->addWidget(SLQuality);
       
   622             GBAlayout->addLayout(GBAqualayout);
   614 
   623 
   615             hr = new QFrame(AGGroupBox);
   624             hr = new QFrame(AGGroupBox);
   616             hr->setFrameStyle(QFrame::HLine);
   625             hr->setFrameStyle(QFrame::HLine);
   617             hr->setLineWidth(3);
   626             hr->setLineWidth(3);
   618             hr->setFixedHeight(10);
   627             hr->setFixedHeight(10);