mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Improved "Create new map" dialog for map editor (#5187)
* Improve "Create new map" dialog * Tweaks * Tweaks * Final tweaking Optimized UI to look more consistent. Removed help button. * Add files via upload * Reworked dialog * Formatting fix * Add files via upload * Add files via upload * Add files via upload * Fix seed condition * Remove help button * Remove help button * Fixed labels * Fix for Humans vs Computers combo * Removed not needed connections + better radio names * Update mapeditor/windownewmap.cpp Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com> * Improve map size selection grabbing * Remove QRegularExpression * Reformat mapSizes --------- Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
co-authored by
Andrey Filipenkov
parent
c3952b31f1
commit
6c72aa4cbe
@@ -25,7 +25,9 @@ MapSettings::MapSettings(MapController & ctrl, QWidget *parent) :
|
||||
controller(ctrl)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
||||
|
||||
assert(controller.map());
|
||||
|
||||
show();
|
||||
|
||||
@@ -62,6 +62,8 @@ Translations::Translations(CMapHeader & mh, QWidget *parent) :
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
ui->setupUi(this);
|
||||
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
||||
|
||||
//fill languages list
|
||||
std::set<int> indexFoundLang;
|
||||
int foundLang = -1;
|
||||
|
||||
Reference in New Issue
Block a user