Commit 1e370a45 authored by Dmitry Shachnev's avatar Dmitry Shachnev
Browse files

dbusmenu: Make D-Bus menus and menu items enabled by default


There is no reason why they should be disabled, and also the current behavior
breaks the D-Bus platform menu bar implementation.

Change-Id: I8a8b5b6a66e40f1f1a25394dc87ac2178c7907fa
Reviewed-by: default avatarMartin Klapetek <mklapetek@kde.org>
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@theqtcompany.com>
Showing with 2 additions and 2 deletions
...@@ -49,7 +49,7 @@ QDBusPlatformMenuItem::QDBusPlatformMenuItem(quintptr tag) ...@@ -49,7 +49,7 @@ QDBusPlatformMenuItem::QDBusPlatformMenuItem(quintptr tag)
: m_tag(tag ? tag : reinterpret_cast<quintptr>(this)) // QMenu will overwrite this later : m_tag(tag ? tag : reinterpret_cast<quintptr>(this)) // QMenu will overwrite this later
, m_subMenu(Q_NULLPTR) , m_subMenu(Q_NULLPTR)
, m_role(NoRole) , m_role(NoRole)
, m_isEnabled(false) , m_isEnabled(true)
, m_isVisible(true) , m_isVisible(true)
, m_isSeparator(false) , m_isSeparator(false)
, m_isCheckable(false) , m_isCheckable(false)
...@@ -146,7 +146,7 @@ QList<const QDBusPlatformMenuItem *> QDBusPlatformMenuItem::byIds(const QList<in ...@@ -146,7 +146,7 @@ QList<const QDBusPlatformMenuItem *> QDBusPlatformMenuItem::byIds(const QList<in
QDBusPlatformMenu::QDBusPlatformMenu(quintptr tag) QDBusPlatformMenu::QDBusPlatformMenu(quintptr tag)
: m_tag(tag ? tag : reinterpret_cast<quintptr>(this)) : m_tag(tag ? tag : reinterpret_cast<quintptr>(this))
, m_isEnabled(false) , m_isEnabled(true)
, m_isVisible(true) , m_isVisible(true)
, m_isSeparator(false) , m_isSeparator(false)
, m_dbusID(nextDBusID++) , m_dbusID(nextDBusID++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment