Merge branch 'master' of https://vcs.maemo.org/git/vlc-remote
[vlc-remote] / accountdialog.cpp
1 #include "accountdialog.h"
2 #include "ui_accountdialog.h"
3 #include "scanipdialog.h"
4 AccountDialog::AccountDialog(QWidget *parent) :
5     QDialog(parent),
6     ui(new Ui::AccountDialog)
7 {
8     ui->setupUi(this);
9     connect(ui->addButton,SIGNAL(clicked()),this,SLOT(addAccount()));
10 }
11
12 AccountDialog::~AccountDialog()
13 {
14     delete ui;
15 }
16
17 void AccountDialog::changeEvent(QEvent *e)
18 {
19     QDialog::changeEvent(e);
20     switch (e->type()) {
21     case QEvent::LanguageChange:
22         ui->retranslateUi(this);
23         break;
24     default:
25         break;
26     }
27 }
28     void AccountDialog::addAccount()
29     {
30
31 ScanIPDialog * dialog = new ScanIPDialog(this);
32 dialog->show();
33
34     }