KBookmarks

kbookmarkactionmenu.cpp
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
11KBookmarkActionMenu::KBookmarkActionMenu(const KBookmark &bm, QObject *parent)
12 : KActionMenu(QIcon::fromTheme(bm.icon()), bm.text().replace(QLatin1Char('&'), QLatin1String("&&")), parent)
14{
15 setToolTip(bm.description());
16 setIconText(text());
17}
18
19KBookmarkActionMenu::KBookmarkActionMenu(const KBookmark &bm, const QString &text, QObject *parent)
20 : KActionMenu(text, parent)
22{
23}
24
25KBookmarkActionMenu::~KBookmarkActionMenu()
26{
27}
28
29#include "moc_kbookmarkactionmenu.cpp"
The interface to implement by actions and menus which represent a bookimark.
A class representing a bookmark.
Definition kbookmark.h:27
QString description() const
const QList< QKeySequence > & replace()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:40:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.