Add explanation label to history.

Took 3 minutes
This commit is contained in:
Lukas Brübach 2025-11-19 22:13:41 +01:00
parent 7573e3883d
commit a4fd752ddf
2 changed files with 5 additions and 0 deletions

View file

@ -32,8 +32,11 @@ DeckListHistoryManagerWidget::DeckListHistoryManagerWidget(DeckListModel *_deckL
historyButton = new SettingsButtonWidget(this);
historyButton->setButtonIcon(QPixmap("theme:icons/arrow_history"));
historyLabel = new QLabel(this);
historyList = new QListWidget(this);
historyButton->addSettingsWidget(historyLabel);
historyButton->addSettingsWidget(historyList);
layout->addWidget(historyButton);
@ -55,6 +58,7 @@ void DeckListHistoryManagerWidget::retranslateUi()
undoButton->setToolTip(tr("Undo"));
redoButton->setToolTip(tr("Redo"));
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)

View file

@ -49,6 +49,7 @@ private:
QAction *aRedo;
QToolButton *redoButton;
SettingsButtonWidget *historyButton;
QLabel *historyLabel;
QListWidget *historyList;
};