diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 7066f283..7fc0974c 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -195,6 +195,9 @@ Filter maps... + + true + diff --git a/forms/newmappopup.ui b/forms/newmappopup.ui index da2e0134..213b7ceb 100644 --- a/forms/newmappopup.ui +++ b/forms/newmappopup.ui @@ -51,6 +51,9 @@ <html><head/><body><p>The name of the new map. If the name is invalid (red), it will be replaced with the default name of a new map.</p></body></html> + + true + diff --git a/forms/newtilesetdialog.ui b/forms/newtilesetdialog.ui index c0aa791d..bb7d5939 100644 --- a/forms/newtilesetdialog.ui +++ b/forms/newtilesetdialog.ui @@ -113,7 +113,11 @@ - + + + true + + @@ -148,6 +152,9 @@ false + + true + @@ -162,6 +169,9 @@ false + + true + diff --git a/forms/regionmapeditor.ui b/forms/regionmapeditor.ui index e793f19f..88856e07 100644 --- a/forms/regionmapeditor.ui +++ b/forms/regionmapeditor.ui @@ -799,7 +799,11 @@ - + + + true + + diff --git a/forms/tileseteditor.ui b/forms/tileseteditor.ui index e1e8810a..4f492cea 100644 --- a/forms/tileseteditor.ui +++ b/forms/tileseteditor.ui @@ -272,7 +272,11 @@ - + + + true + + diff --git a/src/editor.cpp b/src/editor.cpp index 95991c40..1345adb6 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -252,6 +252,7 @@ void Editor::addNewWildMonGroup(QWidget *window) { QDialogButtonBox buttonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog); QLineEdit *lineEdit = new QLineEdit(); + lineEdit->setClearButtonEnabled(true); form.addRow(new QLabel("Group Base Label:"), lineEdit); QRegularExpressionValidator *validator = new QRegularExpressionValidator(QRegularExpression("[_A-Za-z0-9]*")); lineEdit->setValidator(validator); @@ -511,6 +512,7 @@ void Editor::configureEncounterJSON(QWidget *window) { connect(&newFieldButtonBox, SIGNAL(rejected()), &newNameDialog, SLOT(reject())); QLineEdit *newNameEdit = new QLineEdit; + newNameEdit->setClearButtonEnabled(true); QFormLayout newFieldForm(&newNameDialog); diff --git a/src/ui/regionmapeditor.cpp b/src/ui/regionmapeditor.cpp index 1fe23056..1ced19b6 100644 --- a/src/ui/regionmapeditor.cpp +++ b/src/ui/regionmapeditor.cpp @@ -580,6 +580,7 @@ void RegionMapEditor::on_pushButton_CityMap_add_clicked() { QFormLayout form(&popup); QLineEdit *input = new QLineEdit(); + input->setClearButtonEnabled(true); form.addRow(new QLabel("Name:"), input); QDialogButtonBox buttonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &popup);