| 1 | /* |
| 2 | Copyright (C) 2014 Mario Stephan <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as published |
| 6 | by the Free Software Foundation; either version 2.1 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #include "djsettings.h" |
| 19 | #include "ui_djsettings.h" |
| 20 | |
| 21 | DjSettings::DjSettings(QWidget *parent) : |
| 22 | QWidget(parent), |
| 23 | ui(new Ui::DjSettings) |
| 24 | { |
| 25 | ui->setupUi(this); |
| 26 | } |
| 27 | |
| 28 | DjSettings::~DjSettings() |
| 29 | { |
| 30 | delete ui; |
| 31 | } |
| 32 | |
| 33 | void DjSettings::setID(int value) |
| 34 | { |
| 35 | ui->label->setText(QString::number(value)); |
| 36 | } |
| 37 | |
| 38 | void DjSettings::setFilterCount(int value) |
| 39 | { |
| 40 | ui->spinBox->setValue(value); |
| 41 | } |
| 42 | |
| 43 | void DjSettings::setName(QString value) |
| 44 | { |
| 45 | ui->lineEdit->setText(value); |
| 46 | } |
| 47 | |
| 48 | int DjSettings::filterCount() |
| 49 | { |
| 50 | return ui->spinBox->value(); |
| 51 | } |
| 52 | |
| 53 | QString DjSettings::name() |
| 54 | { |
| 55 | return ui->lineEdit->text(); |
| 56 | } |