#include "deviceprober.h"
#include "mainwindow.h"
#include <QtWidgets/QApplication>
-#include <QDebug>
int main(int argc, char** argv)
{
QApplication myApp(argc, argv);
const QString VERSION_STRING = QString(APP_NAME) + " " + QString::number(APP_VERSION_MAJOR) + "." + QString::number(APP_VERSION_MINOR) +
QString(APP_VERSION_REL);
- qDebug() << VERSION_STRING;
std::shared_ptr<DeviceProber> prober(new DeviceProber);
- MainWindow* mWin = new MainWindow(prober);
+ MainWindow* mWin = new MainWindow(prober, VERSION_STRING);
mWin->show();
return myApp.exec();
const QString MainWindow::res_effectStopped("Stopped");
const QString MainWindow::res_inputFormatErrCap("Invalid input format.");
-MainWindow::MainWindow(std::shared_ptr<DeviceProber> prober, QWidget* parent) :
+MainWindow::MainWindow(std::shared_ptr<DeviceProber> prober, const QString& title, QWidget* parent) :
QMainWindow(parent),
m_prober(prober),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
+ this->setWindowTitle(title);
m_constantEffSet = new ConstantEffectSettings();
m_periodicEffSet = new PeriodicEffectSettings();
Q_OBJECT
public:
- explicit MainWindow(std::shared_ptr<DeviceProber> prober, QWidget* parent = 0);
+ explicit MainWindow(std::shared_ptr<DeviceProber> prober, const QString& title, QWidget* parent = 0);
~MainWindow();
private: