mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Add explanation label to history.
Took 3 minutes
This commit is contained in:
parent
7573e3883d
commit
a4fd752ddf
2 changed files with 5 additions and 0 deletions
|
|
@ -32,8 +32,11 @@ DeckListHistoryManagerWidget::DeckListHistoryManagerWidget(DeckListModel *_deckL
|
||||||
historyButton = new SettingsButtonWidget(this);
|
historyButton = new SettingsButtonWidget(this);
|
||||||
historyButton->setButtonIcon(QPixmap("theme:icons/arrow_history"));
|
historyButton->setButtonIcon(QPixmap("theme:icons/arrow_history"));
|
||||||
|
|
||||||
|
historyLabel = new QLabel(this);
|
||||||
|
|
||||||
historyList = new QListWidget(this);
|
historyList = new QListWidget(this);
|
||||||
|
|
||||||
|
historyButton->addSettingsWidget(historyLabel);
|
||||||
historyButton->addSettingsWidget(historyList);
|
historyButton->addSettingsWidget(historyList);
|
||||||
|
|
||||||
layout->addWidget(historyButton);
|
layout->addWidget(historyButton);
|
||||||
|
|
@ -55,6 +58,7 @@ void DeckListHistoryManagerWidget::retranslateUi()
|
||||||
undoButton->setToolTip(tr("Undo"));
|
undoButton->setToolTip(tr("Undo"));
|
||||||
redoButton->setToolTip(tr("Redo"));
|
redoButton->setToolTip(tr("Redo"));
|
||||||
historyButton->setToolTip(tr("Undo/Redo history"));
|
historyButton->setToolTip(tr("Undo/Redo history"));
|
||||||
|
historyLabel->setText(tr("Click on an entry to revert to that point in the history."));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckListHistoryManagerWidget::setDeckListModel(DeckListModel *_deckListModel)
|
void DeckListHistoryManagerWidget::setDeckListModel(DeckListModel *_deckListModel)
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ private:
|
||||||
QAction *aRedo;
|
QAction *aRedo;
|
||||||
QToolButton *redoButton;
|
QToolButton *redoButton;
|
||||||
SettingsButtonWidget *historyButton;
|
SettingsButtonWidget *historyButton;
|
||||||
|
QLabel *historyLabel;
|
||||||
QListWidget *historyList;
|
QListWidget *historyList;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue