| 1 | /* |
| 2 | This file is part of the KDE project |
| 3 | SPDX-FileCopyrightText: 1998, 1999 Torben Weis <weis@kde.org> |
| 4 | SPDX-FileCopyrightText: 2006 Daniel Teske <teske@squorn.de> |
| 5 | |
| 6 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #include "kbookmarkactionmenu.h" |
| 10 | |
| 11 | KBookmarkActionMenu::(const KBookmark &bm, QObject *parent) |
| 12 | : KActionMenu(QIcon::fromTheme(name: bm.icon()), bm.text().replace(c: QLatin1Char('&'), after: QLatin1String("&&" )), parent) |
| 13 | , KBookmarkActionInterface(bm) |
| 14 | { |
| 15 | setToolTip(bm.description()); |
| 16 | setIconText(text()); |
| 17 | } |
| 18 | |
| 19 | KBookmarkActionMenu::(const KBookmark &bm, const QString &text, QObject *parent) |
| 20 | : KActionMenu(text, parent) |
| 21 | , KBookmarkActionInterface(bm) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | KBookmarkActionMenu::() |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | #include "moc_kbookmarkactionmenu.cpp" |
| 30 | |