]> git.sur5r.net Git - minitube/commitdiff
Commented out useless code
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 12 Oct 2009 18:33:31 +0000 (20:33 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 12 Oct 2009 18:33:31 +0000 (20:33 +0200)
src/SettingsView.cpp
src/SettingsView.h

index 4dc3c3c882f948b62c3d94653b8ff4994ecff344..2543ef011ca9d634e5013c85e6102eefb560b17a 100644 (file)
@@ -2,8 +2,57 @@
 
 SettingsView::SettingsView( QWidget *parent ) : QWidget(parent) {
 
+    /*
     QSettings settings;
 
+    QBoxLayout *layout = new QVBoxLayout(this);
+    layout->setAlignment(Qt::AlignCenter);
+    // layout->setSpacing(30);
+    
+    QFormLayout *formLayout = new QFormLayout;
+    formLayout->setFormAlignment(Qt::AlignHCenter | Qt::AlignTop);
+    formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
+
+    QGroupBox *videoGroup = new QGroupBox(tr("&Video options"), this);
+
+    contrastSlider = new QSlider(Qt::Horizontal, this);
+    contrastSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+    formLayout->addRow("&Contrast", contrastSlider);
+
+    brightnessSlider = new QSlider(Qt::Horizontal, this);
+    brightnessSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+    formLayout->addRow("&Brightness", brightnessSlider);
+
+    saturationSlider = new QSlider(Qt::Horizontal, this);
+    saturationSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+    formLayout->addRow("&Saturation", saturationSlider);
+
+    hueSlider = new QSlider(Qt::Horizontal, this);
+    hueSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+    formLayout->addRow("&Hue", hueSlider);
+
+    hdVideoCheckBox = new QCheckBox(tr("Use high quality video when available"), this);
+    formLayout->addRow("", hdVideoCheckBox);
+
+    maxRecentKeywordsSpinBox = new QSpinBox(this);
+    maxRecentKeywordsSpinBox->setMinimum(1);
+    maxRecentKeywordsSpinBox->setMaximum(30);
+    // maxRecentKeywordsSpinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+    formLayout->addRow(tr("&Saved recent keywords"), maxRecentKeywordsSpinBox);
+    layout->addLayout(formLayout);
+
+    clearRecentKeywordsButton = new QPushButton(tr("&Clear recent keywords"), this);
+    // clearRecentKeywordsButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+    formLayout->addRow("", clearRecentKeywordsButton);
+
+    QPushButton *closeButton = new QPushButton(tr("&Close"), this);
+    // closeButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
+    closeButton->setDefault(true);
+    closeButton->setFocus(Qt::OtherFocusReason);
+    connect(closeButton, SIGNAL(clicked()), parent, SLOT(goBack()));
+    formLayout->addRow("", closeButton);
+    */
+
 }
 
 void SettingsView::storeSettings() {
index 1e1a66198fb3273bd1944bed745b13ca1fe5f773..d728d5da2eb9452c5024338c57931df4853aea68 100644 (file)
@@ -23,8 +23,15 @@ private slots:
     void storeSettings();
 
 private:
-    QLineEdit *urlEdit;
-    QLabel *urlLabel;
+
+    QSlider *contrastSlider;
+    QSlider *brightnessSlider;
+    QSlider *saturationSlider;
+    QSlider *hueSlider;
+
+    QCheckBox *hdVideoCheckBox;
+    QSpinBox *maxRecentKeywordsSpinBox;
+    QPushButton *clearRecentKeywordsButton;
 
 };
 #endif