summaryrefslogtreecommitdiffstats
path: root/src/b2qt-flashing-wizard/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/b2qt-flashing-wizard/mainwindow.cpp')
-rw-r--r--src/b2qt-flashing-wizard/mainwindow.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/b2qt-flashing-wizard/mainwindow.cpp b/src/b2qt-flashing-wizard/mainwindow.cpp
deleted file mode 100644
index 8693eab..0000000
--- a/src/b2qt-flashing-wizard/mainwindow.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use the contact form at
-** http://qt.digia.com/
-**
-** This file is part of Qt Enterprise Embedded.
-**
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** the contact form at http://qt.digia.com/
-**
-****************************************************************************/
-
-#include "mainwindow.h"
-#include "introduction_page.h"
-#include "platform_page.h"
-#include "disk_page.h"
-#include "device_page.h"
-#include "commit_page.h"
-#include "progress_page.h"
-#include "finish_page.h"
-#include <QDebug>
-#include <QDir>
-#include <QCoreApplication>
-
-PlatformInfo G_platforminfo;
-QString G_SDKDIR; // install directory
-QString G_mode; // adb or fastboot
-QString G_device;
-
-MainWindow::MainWindow()
- : QWizard()
-{
- setWindowTitle(tr("Boot to Qt Flashing Wizard"));
- setPixmap(QWizard::LogoPixmap, QPixmap(":logo.png").scaled(64, 64, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
- setPixmap(QWizard::BackgroundPixmap, QPixmap(":background.png"));
- setPixmap(QWizard::WatermarkPixmap, QPixmap(":watermark.png"));
- G_SDKDIR = qgetenv("SDKDIR");
- if (G_SDKDIR.isEmpty())
- G_SDKDIR = QDir::cleanPath(QCoreApplication::applicationDirPath() + "/../..");
- if (!G_SDKDIR.endsWith('/'))
- G_SDKDIR.append('/');
-
- setWizardStyle(QWizard::ModernStyle);
- setPage(Page_Intro, new IntroductionPage);
- setPage(Page_Platform, new PlatformPage);
- setPage(Page_Disk, new DiskPage);
- setPage(Page_Device, new DevicePage);
- setPage(Page_Commit, new CommitPage);
- setPage(Page_Progress, new ProgressPage);
- setPage(Page_Finish, new FinishPage);
-}
-
-MainWindow::~MainWindow()
-{
-}
-