QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
852 B

/*
SPDX-FileCopyrightText: 2011 Lionel Chauvin <megabigbug@yahoo.fr>
SPDX-FileCopyrightText: 2011, 2012 Cédric Bellegarde <gnumdk@gmail.com>
SPDX-License-Identifier: MIT
*/
#pragma once
#include <QDBusObjectPath>
#include <QMenu>
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;
};