fix: change group -> category in UI

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-06 15:03:52 +02:00
parent af73c797aa
commit 1965e7ca87
No known key found for this signature in database
GPG Key ID: C10411294912A422
4 changed files with 7 additions and 7 deletions

View File

@ -703,8 +703,8 @@ public:
actionChangeInstGroup = TranslatedAction(MainWindow);
actionChangeInstGroup->setObjectName(QStringLiteral("actionChangeInstGroup"));
actionChangeInstGroup.setTextId(QT_TRANSLATE_NOOP("MainWindow", "&Change Group..."));
actionChangeInstGroup.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Change the selected instance's group."));
actionChangeInstGroup.setTextId(QT_TRANSLATE_NOOP("MainWindow", "&Change category..."));
actionChangeInstGroup.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Change the selected instance's category."));
actionChangeInstGroup->setShortcut(QKeySequence(tr("Ctrl+G")));
actionChangeInstGroup->setIcon(APPLICATION->getThemedIcon("tag"));
all_actions.append(&actionChangeInstGroup);
@ -1694,7 +1694,7 @@ void MainWindow::on_actionChangeInstGroup_triggered()
groups.sort(Qt::CaseInsensitive);
int foo = groups.indexOf(name);
name = QInputDialog::getItem(this, tr("Group name"), tr("Enter a new group name."), groups, foo, true, &ok);
name = QInputDialog::getItem(this, tr("Category name"), tr("Enter a new category name."), groups, foo, true, &ok);
name = name.simplified();
if (ok)
{
@ -1716,7 +1716,7 @@ void MainWindow::deleteGroup()
QString groupName = map["group"].toString();
if(!groupName.isEmpty())
{
auto reply = QMessageBox::question(this, tr("Delete group"), tr("Are you sure you want to delete the group %1?")
auto reply = QMessageBox::question(this, tr("Delete category"), tr("Are you sure you want to delete the category %1?")
.arg(groupName), QMessageBox::Yes | QMessageBox::No);
if(reply == QMessageBox::Yes)
{

View File

@ -77,7 +77,7 @@ CopyInstanceDialog::CopyInstanceDialog(InstancePtr original, QWidget *parent)
index = 0;
}
ui->groupBox->setCurrentIndex(index);
ui->groupBox->lineEdit()->setPlaceholderText(tr("No group"));
ui->groupBox->lineEdit()->setPlaceholderText(tr("No category"));
ui->copySavesCheckbox->setChecked(m_copySaves);
ui->keepPlaytimeCheckbox->setChecked(m_keepPlaytime);
}

View File

@ -87,7 +87,7 @@
<item row="0" column="0">
<widget class="QLabel" name="labelVersion_3">
<property name="text">
<string>&amp;Group</string>
<string>&amp;Category</string>
</property>
<property name="buddy">
<cstring>groupBox</cstring>

View File

@ -94,7 +94,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString
index = 0;
}
ui->groupBox->setCurrentIndex(index);
ui->groupBox->lineEdit()->setPlaceholderText(tr("No group"));
ui->groupBox->lineEdit()->setPlaceholderText(tr("No category"));
// NOTE: m_buttons must be initialized before PageContainer, because it indirectly accesses m_buttons through setSuggestedPack! Do not move this below.