[pim/korganizer] src/dialog: koeventviewerdialog.cpp - give the buttons tooltips and whatsthis
Allen Winter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 6ea56deb5bdb702a2ccc89e16a035ef7d487f60c by Allen Winter.
Committed on 23/07/2026 at 14:17.
Pushed by winterz into branch 'master'.
koeventviewerdialog.cpp - give the buttons tooltips and whatsthis
M +8 -0 src/dialog/koeventviewerdialog.cpp
https://invent.kde.org/pim/korganizer/-/commit/6ea56deb5bdb702a2ccc89e16a035ef7d487f60c
diff --git a/src/dialog/koeventviewerdialog.cpp b/src/dialog/koeventviewerdialog.cpp
index 7c961bf4a..366c8e506 100644
--- a/src/dialog/koeventviewerdialog.cpp
+++ b/src/dialog/koeventviewerdialog.cpp
@@ -39,6 +39,14 @@ KOEventViewerDialog::KOEventViewerDialog(Akonadi::ETMCalendar *calendar, QWidget
setModal(false);
KGuiItem::assign(mUser1Button, KGuiItem(i18nc("@action:button", "Edit…"), QIcon::fromTheme(QStringLiteral("document-edit"))));
KGuiItem::assign(user2Button, KGuiItem(i18nc("@action:button", "Show in Context")));
+
+ // toolip and whatsthis must be set after that KGuiItem::assign calls above
+ mUser1Button->setToolTip(i18nc("@info:tooltip", "Start the editor for this incidence"));
+ mUser1Button->setWhatsThis(i18nc("@info:whatsthis", "Press the Edit button to pop-up the incidence editor dialog"));
+ user2Button->setToolTip(i18nc("@info:tooltip", "Scroll to the appropriate calendar view so the incidence can be seen in context"));
+ user2Button->setWhatsThis(i18nc("@info:whatsthis",
+ "Press this button to show an incidence in context. This means showing the to-do, agenda or journal view (as appropriate) "
+ "and scrolling it to show the incidence."));
mEventViewer = new CalendarSupport::IncidenceViewer(calendar->entityTreeModel(), this);
mainLayout->addWidget(mEventViewer);
mainLayout->addWidget(buttonBox);