diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-05 18:04:59 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-05 18:04:59 +0000 |
| commit | 61cfbabecf27c4fe636e00aea57d8b2a9c6e634a (patch) | |
| tree | 7c217ee50f3705b9464745582df584f70569ad01 /src/plugins/General/converter/preseteditor.cpp | |
| parent | 899a15f90c2845cd44e0e6aa1dc4eae5dcc68f2b (diff) | |
| download | qmmp-61cfbabecf27c4fe636e00aea57d8b2a9c6e634a.tar.gz qmmp-61cfbabecf27c4fe636e00aea57d8b2a9c6e634a.tar.bz2 qmmp-61cfbabecf27c4fe636e00aea57d8b2a9c6e634a.zip | |
converter: added default presets, fixed some bugs
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2379 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/converter/preseteditor.cpp')
| -rw-r--r-- | src/plugins/General/converter/preseteditor.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/General/converter/preseteditor.cpp b/src/plugins/General/converter/preseteditor.cpp index 4a1865d92..e1e75e217 100644 --- a/src/plugins/General/converter/preseteditor.cpp +++ b/src/plugins/General/converter/preseteditor.cpp @@ -21,11 +21,11 @@ #include "preseteditor.h" #include "ui_preseteditor.h" -PresetEditor::PresetEditor(const QString &name, const QVariantMap &data, QWidget *parent) : +PresetEditor::PresetEditor(const QVariantMap &data, QWidget *parent) : QDialog(parent), m_ui(new Ui::PresetEditor) { m_ui->setupUi(this); - m_ui->nameLineEdit->setText(name); + m_ui->nameLineEdit->setText(data.value("name").toString()); m_ui->extensionLineEdit->setText(data.value("ext").toString()); m_ui->commandLineEdit->setText(data.value("command").toString()); m_ui->us16bitCheckBox->setChecked(data.value("use_16bit").toBool()); @@ -37,14 +37,10 @@ PresetEditor::~PresetEditor() delete m_ui; } -const QString PresetEditor::name() const -{ - return m_ui->nameLineEdit->text(); -} - const QVariantMap PresetEditor::data() const { QVariantMap data; + data.insert("name", m_ui->nameLineEdit->text()); data.insert("ext", m_ui->extensionLineEdit->text()); data.insert("command", m_ui->commandLineEdit->text()); data.insert("use_16bit", m_ui->us16bitCheckBox->isChecked()); |
