4 * @author Toni Jussila <toni.jussila@fudeco.com>
5 * @author Rikhard Kuutti <rikhard.kuutti@fudeco.com>
6 * @copyright (c) 2010 Speed Freak team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 #include "welcomedialog.h"
11 #include "ui_welcomedialog.h"
12 #include "instructionsdialog.h"
16 WelcomeDialog::WelcomeDialog(QWidget *parent) :
18 ui(new Ui::WelcomeDialog)
21 this->setWindowTitle(" ");
22 movie = new QMovie("Graphics/start.gif");
23 ui->labelWelcome->setMovie(movie);
25 connect(movie,SIGNAL(frameChanged(int)),this,SLOT(stop(int)));
28 WelcomeDialog::~WelcomeDialog()
35 void WelcomeDialog::changeEvent(QEvent *e)
37 QDialog::changeEvent(e);
39 case QEvent::LanguageChange:
40 ui->retranslateUi(this);
47 void WelcomeDialog::stop(int currentFrame)
49 if (currentFrame == 21)
54 // Show instructionsDialog if this is
55 // the first time the application is run
57 bool firstRunGone = settings.value("firstRunGone").toBool();
60 InstructionsDialog *instructionsDialog = new InstructionsDialog;
61 instructionsDialog->show();
62 settings.setValue("firstRunGone", true);