1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/launcher/updatedialog_moc.h
2022-08-25 06:45:31 +04:00

37 lines
611 B
C++

#ifndef UPDATEDIALOG_MOC_H
#define UPDATEDIALOG_MOC_H
#include <QDialog>
class JsonNode;
namespace Ui {
class UpdateDialog;
}
class UpdateDialog : public QDialog
{
Q_OBJECT
public:
explicit UpdateDialog(QWidget *parent = nullptr, bool calledManually = false);
~UpdateDialog();
static void showUpdateDialog(bool isManually);
private slots:
void on_checkOnStartup_stateChanged(int state);
private:
Ui::UpdateDialog *ui;
std::string currentVersion;
std::string platformParameter = "other";
bool calledManually;
void loadFromJson(const JsonNode & node);
};
#endif // UPDATEDIALOG_MOC_H