File indexing completed on 2024-07-14 14:26:44

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 1998, 1999 Torben Weis <weis@kde.org>
0004     SPDX-FileCopyrightText: 2006 Daniel Teske <teske@squorn.de>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #include "kbookmarkactionmenu.h"
0010 
0011 KBookmarkActionMenu::KBookmarkActionMenu(const KBookmark &bm, QObject *parent)
0012     : KActionMenu(QIcon::fromTheme(bm.icon()), bm.text().replace(QLatin1Char('&'), QLatin1String("&&")), parent)
0013     , KBookmarkActionInterface(bm)
0014 {
0015     setToolTip(bm.description());
0016     setIconText(text());
0017 }
0018 
0019 KBookmarkActionMenu::KBookmarkActionMenu(const KBookmark &bm, const QString &text, QObject *parent)
0020     : KActionMenu(text, parent)
0021     , KBookmarkActionInterface(bm)
0022 {
0023 }
0024 
0025 KBookmarkActionMenu::~KBookmarkActionMenu()
0026 {
0027 }
0028 
0029 #include "moc_kbookmarkactionmenu.cpp"