From a4fd752ddfdb2c7548d46f10146204e142d1841d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Wed, 19 Nov 2025 22:13:41 +0100 Subject: [PATCH] Add explanation label to history. Took 3 minutes --- .../widgets/deck_editor/deck_list_history_manager_widget.cpp | 4 ++++ .../widgets/deck_editor/deck_list_history_manager_widget.h | 1 + 2 files changed, 5 insertions(+) diff --git a/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.cpp b/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.cpp index aa7ee10d9..907027fa3 100644 --- a/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.cpp +++ b/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.cpp @@ -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) diff --git a/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.h b/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.h index ed86c6904..23619b91b 100644 --- a/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.h +++ b/cockatrice/src/interface/widgets/deck_editor/deck_list_history_manager_widget.h @@ -49,6 +49,7 @@ private: QAction *aRedo; QToolButton *redoButton; SettingsButtonWidget *historyButton; + QLabel *historyLabel; QListWidget *historyList; };