From 6c7f2408fba25ed1d4bc86d4e9ba6d00c7cdd1fd Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 22 Jan 2010 20:47:44 +0100 Subject: [PATCH] Removed unused SettingsView --- src/SettingsView.cpp | 60 -------------------------------------------- src/SettingsView.h | 37 --------------------------- 2 files changed, 97 deletions(-) delete mode 100644 src/SettingsView.cpp delete mode 100644 src/SettingsView.h diff --git a/src/SettingsView.cpp b/src/SettingsView.cpp deleted file mode 100644 index 2543ef0..0000000 --- a/src/SettingsView.cpp +++ /dev/null @@ -1,60 +0,0 @@ -#include "SettingsView.h" - -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() { - -} diff --git a/src/SettingsView.h b/src/SettingsView.h deleted file mode 100644 index d728d5d..0000000 --- a/src/SettingsView.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef SETTINGSVIEW_H -#define SETTINGSVIEW_H - -#include -#include "View.h" - -class SettingsView : public QWidget, public View { - - Q_OBJECT - -public: - SettingsView(QWidget *parent); - void appear() {} - void disappear() {} - QMap metadata() { - QMap metadata; - metadata.insert("title", tr("Preferences")); - metadata.insert("description", tr("")); - return metadata; - } - -private slots: - void storeSettings(); - -private: - - QSlider *contrastSlider; - QSlider *brightnessSlider; - QSlider *saturationSlider; - QSlider *hueSlider; - - QCheckBox *hdVideoCheckBox; - QSpinBox *maxRecentKeywordsSpinBox; - QPushButton *clearRecentKeywordsButton; - -}; -#endif -- 2.39.5