From 4e985398aac73524b9e00e12c59e7900c8a5be3f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Aug 2025 13:16:55 +0530 Subject: [PATCH] Add tooltips to action buttons --- src/calibre/gui2/viewer/llm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/llm.py b/src/calibre/gui2/viewer/llm.py index ce73d5dd7f..82ebee0e0b 100644 --- a/src/calibre/gui2/viewer/llm.py +++ b/src/calibre/gui2/viewer/llm.py @@ -253,7 +253,7 @@ class LLMPanel(QWidget): self.layout.addLayout(response_actions_layout) footer_layout = QHBoxLayout() - self.settings_button = QPushButton(_('Se&ttings')) + self.settings_button = QPushButton(QIcon.ic('config'), _('Se&ttings')) self.settings_button.setCursor(Qt.CursorShape.PointingHandCursor) self.settings_button.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) self.api_usage_label = QLabel(_('API calls: 0 | Cost: ~$0.0000')) @@ -284,6 +284,7 @@ class LLMPanel(QWidget): if i >= len(positions): break button = QPushButton(action.human_name, self) + button.setToolTip(action.prompt_text) button.clicked.connect(partial(self.activate_action, action)) row, col = positions[i] self.quick_actions_layout.addWidget(button, row, col)