File indexing completed on 2024-05-05 05:37:32
0001 /* 0002 SPDX-FileCopyrightText: 2011 Lionel Chauvin <megabigbug@yahoo.fr> 0003 SPDX-FileCopyrightText: 2011, 2012 Cédric Bellegarde <gnumdk@gmail.com> 0004 0005 SPDX-License-Identifier: MIT 0006 */ 0007 0008 #pragma once 0009 0010 #include <QDBusObjectPath> 0011 #include <QMenu> 0012 0013 class VerticalMenu : public QMenu 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit VerticalMenu(QWidget *parent = nullptr); 0018 ~VerticalMenu() override; 0019 0020 QString serviceName() const 0021 { 0022 return m_serviceName; 0023 } 0024 void setServiceName(const QString &serviceName) 0025 { 0026 m_serviceName = serviceName; 0027 } 0028 0029 QDBusObjectPath menuObjectPath() const 0030 { 0031 return m_menuObjectPath; 0032 } 0033 void setMenuObjectPath(const QDBusObjectPath &menuObjectPath) 0034 { 0035 m_menuObjectPath = menuObjectPath; 0036 } 0037 0038 private: 0039 QString m_serviceName; 0040 QDBusObjectPath m_menuObjectPath; 0041 };