Qt: Fix translatability of memory card editor tooltips

This commit is contained in:
Connor McLaughlin 2021-03-20 03:05:18 +10:00
parent d61a9875e1
commit 76d30282e0

View File

@ -31,12 +31,12 @@ MemoryCardEditorDialog::MemoryCardEditorDialog(QWidget* parent) : QDialog(parent
populateComboBox(m_ui.cardAPath);
populateComboBox(m_ui.cardBPath);
static constexpr char new_card_hover_text[] = TRANSLATABLE("MemoryCardEditorDialog", "New Card...");
static constexpr char open_card_hover_text[] = TRANSLATABLE("MemoryCardEditorDialog", "Open Card...");
m_ui.newCardA->setToolTip(QString(new_card_hover_text));
m_ui.newCardB->setToolTip(QString(new_card_hover_text));
m_ui.openCardA->setToolTip(QString(open_card_hover_text));
m_ui.openCardB->setToolTip(QString(open_card_hover_text));
const QString new_card_hover_text(tr("New Card..."));
const QString open_card_hover_text(tr("Open Card..."));
m_ui.newCardA->setToolTip(new_card_hover_text);
m_ui.newCardB->setToolTip(new_card_hover_text);
m_ui.openCardA->setToolTip(open_card_hover_text);
m_ui.openCardB->setToolTip(open_card_hover_text);
}
MemoryCardEditorDialog::~MemoryCardEditorDialog() = default;