1 /* VLC-REMOTE for MAEMO 5
2 * Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2,
5 * or (at your option) any later version, as published by the Free
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #include "configdialog.h"
19 #include "ui_configdialog.h"
22 ConfigDialog::ConfigDialog(QWidget *parent) :
24 ui(new Ui::ConfigDialog)
28 connect(ui->buttonBox,SIGNAL(accepted()),this,SLOT(save()));
31 ConfigDialog::~ConfigDialog()
36 void ConfigDialog::changeEvent(QEvent *e)
38 QDialog::changeEvent(e);
40 case QEvent::LanguageChange:
41 ui->retranslateUi(this);
47 void ConfigDialog::load()
50 ui->lineEdit->setText(settings.value("ip").toString());
54 void ConfigDialog::save()
58 settings.setValue("ip",ui->lineEdit->text());