Browse Source

Don't use separate versioning for map editor

godric3 1 year ago
parent
commit
7e66bd4a90
2 changed files with 2 additions and 2 deletions
  1. 0 1
      mapeditor/StdInc.h
  2. 2 1
      mapeditor/mainwindow.cpp

+ 0 - 1
mapeditor/StdInc.h

@@ -11,7 +11,6 @@
 
 
 #include "../Global.h"
 #include "../Global.h"
 
 
-#define VCMI_EDITOR_VERSION "0.2"
 #define VCMI_EDITOR_NAME "VCMI Map Editor"
 #define VCMI_EDITOR_NAME "VCMI Map Editor"
 
 
 #include <QtWidgets>
 #include <QtWidgets>

+ 2 - 1
mapeditor/mainwindow.cpp

@@ -182,6 +182,7 @@ MainWindow::MainWindow(QWidget* parent) :
 	console = new CConsoleHandler();
 	console = new CConsoleHandler();
 	logConfig = new CBasicLogConfigurator(logPath, console);
 	logConfig = new CBasicLogConfigurator(logPath, console);
 	logConfig->configureDefault();
 	logConfig->configureDefault();
+	logGlobal->info("Starting map editor of '%s'", GameConstants::VCMI_VERSION);
 	logGlobal->info("The log file will be saved to %s", logPath);
 	logGlobal->info("The log file will be saved to %s", logPath);
 
 
 	//init
 	//init
@@ -317,7 +318,7 @@ void MainWindow::setStatusMessage(const QString & status)
 
 
 void MainWindow::setTitle()
 void MainWindow::setTitle()
 {
 {
-	QString title = QString("%1%2 - %3 (v%4)").arg(filename, unsaved ? "*" : "", VCMI_EDITOR_NAME, VCMI_EDITOR_VERSION);
+	QString title = QString("%1%2 - %3 (%4)").arg(filename, unsaved ? "*" : "", VCMI_EDITOR_NAME, GameConstants::VCMI_VERSION.c_str());
 	setWindowTitle(title);
 	setWindowTitle(title);
 }
 }