DolphinQt: Remove Windows dialog help buttons

This commit is contained in:
Dentomologist
2021-08-21 10:35:21 -07:00
parent 17a01c894b
commit 87924f2ddd
4 changed files with 37 additions and 24 deletions

View File

@ -1030,7 +1030,9 @@ void GameList::OnHeaderViewChanged()
void GameList::NewTag()
{
auto tag = QInputDialog::getText(this, tr("New tag"), tr("Name for a new tag:"));
const auto tag =
QInputDialog::getText(this, tr("New tag"), tr("Name for a new tag:"), QLineEdit::Normal,
QString{}, nullptr, Qt::WindowCloseButtonHint);
if (tag.isEmpty())
return;
@ -1040,7 +1042,9 @@ void GameList::NewTag()
void GameList::DeleteTag()
{
auto tag = QInputDialog::getText(this, tr("Remove tag"), tr("Name of the tag to remove:"));
const auto tag =
QInputDialog::getText(this, tr("Remove tag"), tr("Name of the tag to remove:"),
QLineEdit::Normal, QString{}, nullptr, Qt::WindowCloseButtonHint);
if (tag.isEmpty())
return;