/* SPDX-FileCopyrightText: 2011 Lionel Chauvin SPDX-FileCopyrightText: 2011, 2012 Cédric Bellegarde SPDX-License-Identifier: MIT */ #pragma once #include #include class VerticalMenu : public QMenu { Q_OBJECT public: explicit VerticalMenu(QWidget *parent = nullptr); ~VerticalMenu() override; QString serviceName() const { return m_serviceName; } void setServiceName(const QString &serviceName) { m_serviceName = serviceName; } QDBusObjectPath menuObjectPath() const { return m_menuObjectPath; } void setMenuObjectPath(const QDBusObjectPath &menuObjectPath) { m_menuObjectPath = menuObjectPath; } private: QString m_serviceName; QDBusObjectPath m_menuObjectPath; };