mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Add tooltips for buttons.
Took 3 minutes
This commit is contained in:
parent
8c618af5a4
commit
7573e3883d
2 changed files with 11 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ DeckListHistoryManagerWidget::DeckListHistoryManagerWidget(DeckListModel *_deckL
|
|||
&DeckListHistoryManagerWidget::refreshList);
|
||||
|
||||
refreshList();
|
||||
retranslateUi();
|
||||
}
|
||||
|
||||
void DeckListHistoryManagerWidget::retranslateUi()
|
||||
{
|
||||
undoButton->setToolTip(tr("Undo"));
|
||||
redoButton->setToolTip(tr("Redo"));
|
||||
historyButton->setToolTip(tr("Undo/Redo history"));
|
||||
}
|
||||
|
||||
void DeckListHistoryManagerWidget::setDeckListModel(DeckListModel *_deckListModel)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ class DeckListHistoryManagerWidget : public QWidget
|
|||
signals:
|
||||
void requestDisplayWidgetSync();
|
||||
|
||||
public slots:
|
||||
void retranslateUi();
|
||||
|
||||
public:
|
||||
explicit DeckListHistoryManagerWidget(DeckListModel *deckListModel,
|
||||
DeckListStyleProxy *styleProxy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue