feat: add Konsole recipe source and patches

This commit is contained in:
2026-05-07 07:54:52 +01:00
parent 171a96c6af
commit ab85eb7b3d
632 changed files with 713138 additions and 3 deletions
@@ -0,0 +1,37 @@
/* This file was part of the KDE libraries
SPDX-FileCopyrightText: 2019 Tomaz Canabrava <tcanabrava@kde.org>
SPDX-FileCopyrightText: 2019 Martin Sandsmark <martin.sandsmark@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef BOOKMARKMENU_H
#define BOOKMARKMENU_H
// KDE
#include <KBookmarkMenu>
// Konsole
#include "konsoleprivate_export.h"
class KActionCollection;
/* Hackish hack to mitigate a broken behavior of KBookmarkMenu.
* slotAddBookmark accepts duplicates and it's fragile code,
* that thing really deserves a rewrite.
* the easiest way is to "hijack" it's protected method to public
* and just cast around.
*/
class KONSOLEPRIVATE_EXPORT BookmarkMenu : public KBookmarkMenu
{
Q_OBJECT
public:
BookmarkMenu(KBookmarkManager *mgr, KBookmarkOwner *owner, QMenu *parentMenu, KActionCollection *collection);
private Q_SLOTS:
void maybeAddBookmark();
};
#endif // BOOKMARKMENU_H