1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2024-12-09 13:36:16 +00:00
parent 0fde7942d2
commit 274ed05827
3 changed files with 24 additions and 8 deletions

View File

@ -99,10 +99,6 @@ MainWindow::MainWindow(QWidget * parent)
}
#endif
#ifndef ENABLE_EDITOR
ui->startEditorButton->hide();
#endif
computeSidePanelSizes();
bool h3DataFound = CResourceHandler::get()->existsResource(ResourcePath("DATA/GENRLTXT.TXT"));

View File

@ -1,3 +1,13 @@
/*
* StartGameTab.cpp, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#include "StdInc.h"
#include "StartGameTab.h"
#include "ui_StartGameTab.h"
@ -25,6 +35,10 @@ StartGameTab::StartGameTab(QWidget * parent)
ui->buttonGameResume->setVisible(false); // TODO: implement
ui->buttonPresetExport->setVisible(false); // TODO: implement
ui->buttonPresetImport->setVisible(false); // TODO: implement
#ifndef ENABLE_EDITOR
ui->buttonGameEditor->hide();
#endif
}
StartGameTab::~StartGameTab()

View File

@ -1,5 +1,13 @@
#ifndef STARTGAMETAB_H
#define STARTGAMETAB_H
/*
* StartGameTab.cpp, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include <QWidget>
@ -72,5 +80,3 @@ private slots:
private:
Ui::StartGameTab * ui;
};
#endif // STARTGAMETAB_H