projects
/
speedfreak
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed dummy instructions text and added correct instructions
[speedfreak]
/
Client
/
mainwindow.cpp
diff --git
a/Client/mainwindow.cpp
b/Client/mainwindow.cpp
index
09ce0f0
..
6ea222a
100644
(file)
--- a/
Client/mainwindow.cpp
+++ b/
Client/mainwindow.cpp
@@
-11,6
+11,7
@@
#include <QDesktopServices>
#include <QUrl>
#include <QDesktopServices>
#include <QUrl>
+#include <QSettings>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
@@
-18,8
+19,14
@@
MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
{
ui->setupUi(this);
+ QCoreApplication::setOrganizationName("Fudeco Oy");
+ QCoreApplication::setOrganizationDomain("fudeco.com");
+ QCoreApplication::setApplicationName("Speed Freak");
+
creditsDialog = new CreditsDialog;
routeSaveDialog = new RouteSaveDialog;
creditsDialog = new CreditsDialog;
routeSaveDialog = new RouteSaveDialog;
+ settingsDialog = new SettingsDialog;
+ accstart = NULL;
welcomeDialog = new WelcomeDialog;
welcomeDialog->show();
welcomeDialog = new WelcomeDialog;
welcomeDialog->show();
@@
-30,6
+37,9
@@
MainWindow::~MainWindow()
delete ui;
delete routeSaveDialog;
delete ui;
delete routeSaveDialog;
+
+ if(!accstart)
+ delete accstart;
}
void MainWindow::changeEvent(QEvent *e)
}
void MainWindow::changeEvent(QEvent *e)
@@
-58,3
+68,15
@@
void MainWindow::on_pushButtonRoute_clicked()
{
routeSaveDialog->show();
}
{
routeSaveDialog->show();
}
+
+void MainWindow::on_pushButtonSettings_clicked()
+{
+ settingsDialog->show();
+}
+
+void MainWindow::on_pushButtonAccelerate_clicked()
+{
+ if(!accstart)
+ accstart = new accelerationstart(this);
+ accstart->show();
+}