Advance Wayland and KDE package bring-up

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-14 10:51:06 +01:00
parent 51f3c21121
commit cf12defd28
15214 changed files with 20594243 additions and 269 deletions
@@ -0,0 +1,55 @@
/*
This file is part of the KDE project
SPDX-FileCopyrightText: 2006 Olivier Goffart <ogoffart@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef kmenumenuhandler_p_h
#define kmenumenuhandler_p_h
#include <QObject>
class QAction;
class QMenu;
class KXMLGUIBuilder;
class KSelectAction;
namespace KDEPrivate
{
/**
* @internal
* This class handle the context menu of QMenu.
* Used by KXmlGuiBuilder
* @author Olivier Goffart <ogoffart@kde.org>
*/
class KMenuMenuHandler : public QObject
{
Q_OBJECT
public:
explicit KMenuMenuHandler(KXMLGUIBuilder *b);
~KMenuMenuHandler() override
{
}
void insertMenu(QMenu *menu);
bool eventFilter(QObject *watched, QEvent *event) override;
private Q_SLOTS:
void slotSetShortcut();
void buildToolbarAction();
void slotAddToToolBar(int);
private:
void showContextMenu(QMenu *menu, const QPoint &pos);
KXMLGUIBuilder *m_builder = nullptr;
KSelectAction *m_toolbarAction = nullptr;
QMenu *m_popupMenu = nullptr;
QAction *m_popupAction = nullptr;
QMenu *m_contextMenu = nullptr;
};
} // END namespace KDEPrivate
#endif