Commit caafedc9 authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

QtMenu: fix member variable initialization order


Change-Id: I2681e220dc9a46316d802610c926e41526283f9a
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent 784f04c9
Branches
Tags
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -134,12 +134,12 @@ QtMenu::QtMenu(QObject *parent) ...@@ -134,12 +134,12 @@ QtMenu::QtMenu(QObject *parent)
: QtMenuText(parent), : QtMenuText(parent),
m_selectedIndex(-1), m_selectedIndex(-1),
m_highlightedIndex(0), m_highlightedIndex(0),
m_parentWindow(0),
m_hasNativeModel(false), m_hasNativeModel(false),
m_minimumWidth(0), m_minimumWidth(0),
m_popupWindow(0), m_popupWindow(0),
m_menuContentItem(0), m_menuContentItem(0),
m_popupVisible(false), m_popupVisible(false)
m_parentWindow(0)
{ {
m_platformMenu = QGuiApplicationPrivate::platformTheme()->createPlatformMenu(); m_platformMenu = QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
if (m_platformMenu) { if (m_platformMenu) {
......
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