Qt/MemoryCardEditor: Add tool tips for new card and open card buttons

This commit is contained in:
Albert Liu 2021-03-18 18:21:53 -07:00
parent 39d1628da5
commit d7196f1f85

View file

@ -30,6 +30,13 @@ MemoryCardEditorDialog::MemoryCardEditorDialog(QWidget* parent) : QDialog(parent
connectUi(); connectUi();
populateComboBox(m_ui.cardAPath); populateComboBox(m_ui.cardAPath);
populateComboBox(m_ui.cardBPath); 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));
} }
MemoryCardEditorDialog::~MemoryCardEditorDialog() = default; MemoryCardEditorDialog::~MemoryCardEditorDialog() = default;