2 * National Rail Live Departure boards software for the Maemo platform.
3 * Copyright (C) 2010 Stewart Holmes
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * Contact: stewart@stewartholmes.com
21 #include "departurewidget.h"
22 #include "ui_departurewidget.h"
24 DepartureWidget::DepartureWidget(QString time, QString dest, QString late, QString platform, QString id, QWidget *parent) : QWidget(parent), ui(new Ui::DepartureWidget)
28 ui->time->setText(time);
29 ui->destination->setText(dest);
30 ui->status->setText(late);
31 ui->platform->setText(platform);
35 void DepartureWidget::setShowPlatform(bool b)
37 ui->platform->setVisible(b);
38 ui->platformlabel->setVisible(b);
41 DepartureWidget::~DepartureWidget()
46 void DepartureWidget::changeEvent(QEvent *e)
48 QWidget::changeEvent(e);
50 case QEvent::LanguageChange:
51 ui->retranslateUi(this);