Merge branch 'master' of https://vcs.maemo.org/git/vlc-remote
[vlc-remote] / playlistmainwindow.cpp
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
6  *   Software Foundation
7  *
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
12  *
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.
17  */
18 #include "playlistmainwindow.h"
19 #include "ui_playlistmainwindow.h"
20 #include <QPushButton>
21 #include "configdialog.h"
22
23
24 PlayListMainWindow::PlayListMainWindow(QWidget *parent) :
25         QMainWindow(parent),
26         ui(new Ui::PlayListMainWindow)
27 {
28
29     ui->setupUi(this);
30     mTimer = new QTimer(this);
31     setWindowTitle("Vlc remote");
32
33 }
34
35 PlayListMainWindow::~PlayListMainWindow()
36 {
37     delete ui;
38 }
39
40 void PlayListMainWindow::changeEvent(QEvent *e)
41 {
42     QMainWindow::changeEvent(e);
43     switch (e->type()) {
44     case QEvent::LanguageChange:
45         ui->retranslateUi(this);
46         break;
47     default:
48         break;
49     }
50 }
51