14#define REGISTRAR_SERVICE "com.canonical.AppMenu.Registrar"_L1
15#define REGISTRAR_PATH "/com/canonical/AppMenu/Registrar"_L1
46 if (
it != m_menuItems.
cend()) {
84 updateMenuItem(menuItem,
menu);
89 if (newParentWindow) {
91 m_windowId = newParentWindow->winId();
109void QDBusMenuBar::registerMenuBar()
111 static uint menuBarId = 0;
115 if (!
connection.registerObject(m_objectPath, m_menu))
122 qWarning(
"Failed to register window menu, reason: %s (\"%s\")",
128void QDBusMenuBar::unregisterMenuBar()
137 qWarning(
"Failed to unregister window menu, reason: %s (\"%s\")",
147#include "moc_qdbusmenubar_p.cpp"
static QDBusConnection sessionBus()
Returns a QDBusConnection object opened with the session bus.
void setEnabled(bool enabled)
If enabled is true, the item is enabled; otherwise, it is disabled.
void setVisible(bool visible)
If visible is true, the item is made visible.
const_iterator constFind(const Key &key) const noexcept
T value(const Key &key) const noexcept
const_iterator cend() const noexcept
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
qDeleteAll(list.begin(), list.end())
QSet< QString >::iterator it
Combined button and popup list for selecting options.
AudioChannelLayoutTag tag
DBusConnection * connection
#define qUtf8Printable(string)
#define QStringLiteral(str)