File indexing completed on 2024-04-28 17:05:52

0001 /*
0002     SPDX-FileCopyrightText: 2002 Shie Erlich <erlich@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2002 Rafi Yanai <yanai@users.sourceforge.net>
0004     SPDX-FileCopyrightText: 2004-2022 Krusader Krew <https://krusader.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KRBOOKMARKBUTTON_H
0010 #define KRBOOKMARKBUTTON_H
0011 
0012 // QtWidgets
0013 #include <QToolButton>
0014 
0015 #include <KWidgetsAddons/KActionMenu>
0016 
0017 class KrBookmarkButton : public QToolButton
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit KrBookmarkButton(QWidget *parent);
0022     void showMenu();
0023 
0024 signals:
0025     void openUrl(const QUrl &url);
0026     void aboutToShow();
0027 
0028 protected slots:
0029     void populate();
0030 
0031 private:
0032     KActionMenu *acmBookmarks;
0033 };
0034 
0035 #endif // KRBOOKMARK_BUTTON_H