Debian Codegraph @

src/lomiriappmenu/gmenumodelplatformmenu.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2016 Canonical, Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 // Local
18 #include "gmenumodelplatformmenu.h"cxx . . $ `<file>/src/lomiriappmenu/gmenumodelplatformmenu.h`/
19 #include "gmenumodelexporter.h"cxx . . $ `<file>/src/lomiriappmenu/gmenumodelexporter.h`/
20 #include "registry.h"cxx . . $ `<file>/src/lomiriappmenu/registry.h`/
21 #include "menuregistrar.h"cxx . . $ `<file>/src/lomiriappmenu/menuregistrar.h`/
22 #include "logging.h"cxx . . $ `<file>/src/lomiriappmenu/logging.h`/
23
24 // Qt
25 #include <QDebug>
26 #include <QWindow>
27 #include <QCoreApplication>
28
29 #define BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(lomiriappmenu).nospace() << "LomiriPlatformMenuBar[" << (void*)this <<"]::" << __func__
30 #define MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(lomiriappmenu).nospace() << "LomiriPlatformMenu[" << (void*)this <<"]::" << __func__
31 #define ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(lomiriappmenu).nospace() << "LomiriPlatformMenuItem[" << (void*)this <<"]::" << __func__
32
33 namespacecxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/ {
34
35 int logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion. = 0;
36
37 }
38
39 QDebugcxx . . $ QDebug# operatorcxx . . $ `operator<<`(e603ac3a3537a57a).<<(QDebugcxx . . $ QDebug# stream, LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#* bar) {
40 if (bar) return barcxx . . $ QDebug#QDebug(3613488adeda74d9).->operator<<(streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d).);
41 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
42 }
43 QDebugcxx . . $ QDebug# operatorcxx . . $ `operator<<`(16cf31c6401931cb).<<(QDebugcxx . . $ QDebug# stream, LomiriPlatformMenucxx . . $ LomiriPlatformMenu#* menu) {
44 if (menu) return menucxx . . $ QDebug#QDebug(3613488adeda74d9).->operator<<(streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d).);
45 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
46 }
47 QDebugcxx . . $ QDebug# operatorcxx . . $ `operator<<`(d6f007c0bf67bd2c).<<(QDebugcxx . . $ QDebug# stream, LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#* menuItem) {
48 if (menuItem) return menuItemcxx . . $ QDebug#QDebug(3613488adeda74d9).->operator<<(streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d).);
49 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
50 }
51
52 LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#LomiriPlatformMenuBar(49f6e7a06ebc5aa8).()
53 : m_exportercxx . . $ LomiriPlatformMenuBar#m_exporter.(new LomiriMenuBarExportercxx . . $ LomiriMenuBarExporter#(this))
54 , m_registrarcxx . . $ LomiriPlatformMenuBar#m_registrar.(new LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#LomiriMenuRegistrar(49f6e7a06ebc5aa8).())
55 , m_readycxx . . $ LomiriPlatformMenuBar#m_ready.(false)
56 {
57 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
58
59 connectcxx . . $ QObject#connect(835f87066c895669).(this, &LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::menuInsertedcxx . . $ LomiriPlatformMenuBar#menuInserted(fd7767a6ade6aeec)., this, &LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::structureChangedcxx . . $ LomiriPlatformMenuBar#structureChanged(49f6e7a06ebc5aa8).);
60 connectcxx . . $ QObject#connect(835f87066c895669).(this,&LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::menuRemovedcxx . . $ LomiriPlatformMenuBar#menuRemoved(fd7767a6ade6aeec)., this, &LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::structureChangedcxx . . $ LomiriPlatformMenuBar#structureChanged(49f6e7a06ebc5aa8).);
61 }
62
63 LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::~cxx . . $ LomiriPlatformMenuBar#`~LomiriPlatformMenuBar`(49f6e7a06ebc5aa8).LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#()
64 {
65 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
66 }
67
68 void LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::insertMenucxx . . $ LomiriPlatformMenuBar#insertMenu(db937bf30b36f256).(QPlatformMenucxx . . $ QPlatformMenu# *menu, QPlatformMenucxx . . $ QPlatformMenu# *before)
69 {
70 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menu=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menu <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", before=" <<cxx . . $ `operator<<`(31d1e923961dacbd). before <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
71
72 if (m_menuscxx . . $ LomiriPlatformMenuBar#m_menus..containscxx . . $ QList#contains(8877ebe272b9620d).(menu)) return;
73
74 if (!before) {
75 m_menuscxx . . $ LomiriPlatformMenuBar#m_menus..push_backcxx . . $ QList#push_back(77d9f17553126ecb).(menu);
76 } else {
77 for (auto iter = m_menuscxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).(); iter !=cxx . . $ QList#iterator#`operator!=`(73282c1f1756321a). m_menuscxx . . $ LomiriPlatformMenuBar#m_menus..endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).iter) {
78 if (*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).iter == before) {
79 m_menuscxx . . $ LomiriPlatformMenuBar#m_menus..insertcxx . . $ QList#insert(c5e7498fbdecc332).(itercxx . . $ QList#iterator#iterator(fe70663a9b8f3744)., menu);
80 break;
81 }
82 }
83 }
84 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! menuInsertedcxx . . $ LomiriPlatformMenuBar#menuInserted(fd7767a6ade6aeec).(menu);
85 }
86
87 void LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::removeMenucxx . . $ LomiriPlatformMenuBar#removeMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu)
88 {
89 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menu=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menu <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
90
91 QMutableListIteratorcxx . . $ QMutableListIterator#<QPlatformMenucxx . . $ QPlatformMenu#*> iteratorcxx . . $ QMutableListIterator#QMutableListIterator(5ffbb90cd7577367).(m_menuscxx . . $ LomiriPlatformMenuBar#m_menus.);
92 while(iterator.hasNextcxx . . $ QMutableListIterator#hasNext(50ce9a9e25b4a850).()) {
93 if (iterator.nextcxx . . $ QMutableListIterator#next(19b2b6f17af048b).() == menu) {
94 iterator.removecxx . . $ QMutableListIterator#remove(49f6e7a06ebc5aa8).();
95 break;
96 }
97 }
98 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! menuRemovedcxx . . $ LomiriPlatformMenuBar#menuRemoved(fd7767a6ade6aeec).(menu);
99 }
100
101 void LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::syncMenucxx . . $ LomiriPlatformMenuBar#syncMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu)
102 {
103 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menu=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menu <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
104
105 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(menu)
106 }
107
108 void LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::handleReparentcxx . . $ LomiriPlatformMenuBar#handleReparent(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *parentWindow)
109 {
110 BAR_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:29:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(parentWindow=" <<cxx . . $ `operator<<`(c7caec666c6d71e1). parentWindow <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
111
112 setReadycxx . . $ LomiriPlatformMenuBar#setReady(b45ddcbc8423892c).(true);
113 m_registrarcxx . . $ LomiriPlatformMenuBar#m_registrar.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).registerMenuForWindowcxx . . $ LomiriMenuRegistrar#registerMenuForWindow(ec3123c1967ea00e).(parentWindow, QDBusObjectPathcxx . . $ QDBusObjectPath#QDBusObjectPath(e1217c004a86c950).(m_exportercxx . . $ LomiriPlatformMenuBar#m_exporter.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).menuPathcxx . . $ LomiriGMenuModelExporter#menuPath(6ef7b6c27b00b43d).()));
114 }
115
116 QPlatformMenucxx . . $ QPlatformMenu# *LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::menuForTagcxx . . $ LomiriPlatformMenuBar#menuForTag(f74838af0ee81052).(quintptrcxx . . $ quintptr# tag) const
117 {
118 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(QPlatformMenu* menu, m_menus) {
119 if (menu->tagcxx . . $ QPlatformMenu#tag(1c5fc1fd41a99ae7).() == tag) {
120 return menu;
121 }
122 }
123 return nullptr;
124 }
125
126 const QListcxx . . $ QList#<QPlatformMenucxx . . $ QPlatformMenu# *> LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::menuscxx . . $ LomiriPlatformMenuBar#menus(de77e9a93cef077e).() const
127 {
128 return m_menuscxx . . $ QList#QList(3d2301cfd89f773a).;
129 }
130
131 QDebugcxx . . $ QDebug# LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::operatorcxx . . $ LomiriPlatformMenuBar#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream)
132 {
133 stream.nospacecxx . . $ QDebug#nospace(56428bd51055c476).().noquotecxx . . $ QDebug#noquote(56428bd51055c476).() <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(bc823072288cbbb5).(""cxx . . $ QString#QString(85c52e162fed56f9)., logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion., QLatin1Charcxx . . $ QChar#QChar(3c55a7a0aea1b63a).('\t'))
134 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "LomiriPlatformMenuBar(this=" <<cxx . . $ QDebug#`operator<<`(4f783e5a5d632c7c). (void*)this <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")" <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). Qtcxx . . $ Qt/::endlcxx . . $ Qt/endl(e06208c9acdf85a).;
135 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(QPlatformMenu* menu, m_menus) {
136 auto myMenu = static_cast<LomiriPlatformMenucxx . . $ LomiriPlatformMenu#*>(menu);
137 if (myMenu) {
138 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.++;
139 streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d). <<cxx . . $ `operator<<`(16cf31c6401931cb). myMenu;
140 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.--;
141 }
142 }
143
144 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
145 }
146
147 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(5, 6, 0)
148 QPlatformMenucxx . . $ QPlatformMenu# *LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::createMenucxx . . $ LomiriPlatformMenuBar#createMenu(15223643a8dbaac4).() const
149 {
150 return new LomiriPlatformMenucxx . . $ LomiriPlatformMenu#();
151 }
152 #endif
153
154 void LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#::setReadycxx . . $ LomiriPlatformMenuBar#setReady(b45ddcbc8423892c).(bool isReady)
155 {
156 if (m_readycxx . . $ LomiriPlatformMenuBar#m_ready. != isReady) {
157 m_readycxx . . $ LomiriPlatformMenuBar#m_ready. = isReady;
158 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! readycxx . . $ LomiriPlatformMenuBar#ready(49f6e7a06ebc5aa8).();
159 }
160 }
161
162 //////////////////////////////////////////////////////////////
163
164 LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::LomiriPlatformMenucxx . . $ LomiriPlatformMenu#LomiriPlatformMenu(49f6e7a06ebc5aa8).()
165 : m_tagcxx . . $ LomiriPlatformMenu#m_tag.(reinterpret_cast<quintptrcxx . . $ quintptr#>(this))
166 , m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.(nullptr)
167 , m_exportercxx . . $ LomiriPlatformMenu#m_exporter.(nullptr)
168 , m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.(nullptr)
169 {
170 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
171
172 connectcxx . . $ QObject#connect(835f87066c895669).(this, &LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::menuItemInsertedcxx . . $ LomiriPlatformMenu#menuItemInserted(8db14680049b6c4d)., this, &LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::structureChangedcxx . . $ LomiriPlatformMenu#structureChanged(49f6e7a06ebc5aa8).);
173 connectcxx . . $ QObject#connect(835f87066c895669).(this, &LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::menuItemRemovedcxx . . $ LomiriPlatformMenu#menuItemRemoved(8db14680049b6c4d)., this, &LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::structureChangedcxx . . $ LomiriPlatformMenu#structureChanged(49f6e7a06ebc5aa8).);
174 }
175
176 LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::~cxx . . $ LomiriPlatformMenu#`~LomiriPlatformMenu`(49f6e7a06ebc5aa8).LomiriPlatformMenucxx . . $ LomiriPlatformMenu#()
177 {
178 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
179 }
180
181 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::insertMenuItemcxx . . $ LomiriPlatformMenu#insertMenuItem(69003e7ffb7c392b).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem, QPlatformMenuItemcxx . . $ QPlatformMenuItem# *before)
182 {
183 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menuItem=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menuItem <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", before=" <<cxx . . $ `operator<<`(31d1e923961dacbd). before <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
184
185 if (m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..containscxx . . $ QList#contains(8877ebe272b9620d).(menuItem)) return;
186
187 if (!before) {
188 m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..push_backcxx . . $ QList#push_back(77d9f17553126ecb).(menuItem);
189 } else {
190 for (auto iter = m_menuItemscxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).(); iter !=cxx . . $ QList#iterator#`operator!=`(73282c1f1756321a). m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).iter) {
191 if (*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).iter == before) {
192 m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..insertcxx . . $ QList#insert(c5e7498fbdecc332).(itercxx . . $ QList#iterator#iterator(fe70663a9b8f3744)., menuItem);
193 break;
194 }
195 }
196 }
197
198 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! menuItemInsertedcxx . . $ LomiriPlatformMenu#menuItemInserted(8db14680049b6c4d).(menuItem);
199 }
200
201 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::removeMenuItemcxx . . $ LomiriPlatformMenu#removeMenuItem(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem)
202 {
203 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menuItem=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menuItem <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
204
205 QMutableListIteratorcxx . . $ QMutableListIterator#<QPlatformMenuItemcxx . . $ QPlatformMenuItem#*> iteratorcxx . . $ QMutableListIterator#QMutableListIterator(5ffbb90cd7577367).(m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems.);
206 while(iterator.hasNextcxx . . $ QMutableListIterator#hasNext(50ce9a9e25b4a850).()) {
207 if (iterator.nextcxx . . $ QMutableListIterator#next(19b2b6f17af048b).() == menuItem) {
208 iterator.removecxx . . $ QMutableListIterator#remove(49f6e7a06ebc5aa8).();
209 break;
210 }
211 }
212 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! menuItemRemovedcxx . . $ LomiriPlatformMenu#menuItemRemoved(8db14680049b6c4d).(menuItem);
213 }
214
215 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::syncMenuItemcxx . . $ LomiriPlatformMenu#syncMenuItem(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem)
216 {
217 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menuItem=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menuItem <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
218
219 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(menuItem)
220 }
221
222 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::syncSeparatorsCollapsiblecxx . . $ LomiriPlatformMenu#syncSeparatorsCollapsible(b45ddcbc8423892c).(bool enable)
223 {
224 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(enable=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). enable <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
225 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(enable)
226 }
227
228 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setTagcxx . . $ LomiriPlatformMenu#setTag(891dc3055356b409).(quintptrcxx . . $ quintptr# tag)
229 {
230 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(tag=" <<cxx . . $ QDebug#`operator<<`(2f02df98fe98a6d). tag <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
231 m_tagcxx . . $ LomiriPlatformMenu#m_tag. = tag;
232 }
233
234 quintptrcxx . . $ quintptr# LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::tagcxx . . $ LomiriPlatformMenu#tag(1c5fc1fd41a99ae7).() const
235 {
236 return m_tagcxx . . $ LomiriPlatformMenu#m_tag.;
237 }
238
239 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setTextcxx . . $ LomiriPlatformMenu#setText(3520e46b33348bf6).(const QStringcxx . . $ QString# &text)
240 {
241 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(text=" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). text <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
242 if (m_textcxx . . $ LomiriPlatformMenu#m_text. !=cxx . . $ `operator!=`(edf9e4f73813982f). text) {
243 m_textcxx . . $ LomiriPlatformMenu#m_text. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). text;
244 }
245 }
246
247 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setIconcxx . . $ LomiriPlatformMenu#setIcon(71dcdac178620ed6).(const QIconcxx . . $ QIcon# &icon)
248 {
249 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(icon=" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). icon.namecxx . . $ QIcon#name(6ef7b6c27b00b43d).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
250
251 if (!icon.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).() || (!m_iconcxx . . $ LomiriPlatformMenu#m_icon..isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).() && icon.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).())) {
252 m_iconcxx . . $ LomiriPlatformMenu#m_icon. =cxx . . $ QIcon#`operator=`(68c32cb828cec48). icon;
253 }
254 }
255
256 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setEnabledcxx . . $ LomiriPlatformMenu#setEnabled(b45ddcbc8423892c).(bool enabled)
257 {
258 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(enabled=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). enabled <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
259
260 if (m_enabledcxx . . $ LomiriPlatformMenu#m_enabled. != enabled) {
261 m_enabledcxx . . $ LomiriPlatformMenu#m_enabled. = enabled;
262 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! enabledChangedcxx . . $ LomiriPlatformMenu#enabledChanged(b45ddcbc8423892c).(enabled);
263 }
264 }
265
266 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setVisiblecxx . . $ LomiriPlatformMenu#setVisible(b45ddcbc8423892c).(bool isVisible)
267 {
268 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(visible=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). isVisible <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
269
270 if (m_visiblecxx . . $ LomiriPlatformMenu#m_visible. != isVisible) {
271 m_visiblecxx . . $ LomiriPlatformMenu#m_visible. = isVisible;
272 }
273 }
274
275 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setMinimumWidthcxx . . $ LomiriPlatformMenu#setMinimumWidth(d4f767463ce0a6b3).(int width)
276 {
277 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(width=" <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). width <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
278
279 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(width)
280 }
281
282 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::setFontcxx . . $ LomiriPlatformMenu#setFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont# &font)
283 {
284 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(font=" <<cxx . . $ `operator<<`(712f147a5c6b2491). font <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
285
286 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(font)
287 }
288
289 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::showPopupcxx . . $ LomiriPlatformMenu#showPopup(bc88af55b1354d97).(const QWindowcxx . . $ QWindow# *parentWindow, const QRectcxx . . $ QRect# &targetRect, const QPlatformMenuItemcxx . . $ QPlatformMenuItem# *item)
290 {
291 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(parentWindow=" <<cxx . . $ `operator<<`(c7caec666c6d71e1). parentWindow <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", targetRect=" <<cxx . . $ `operator<<`(6a5168d6c2327632). targetRect <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", item=" <<cxx . . $ `operator<<`(31d1e923961dacbd). item <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
292
293 if (!cxx . . $ QScopedPointer#`operator!`(50ce9a9e25b4a850).m_exportercxx . . $ LomiriPlatformMenu#m_exporter.) {
294 m_exportercxx . . $ LomiriPlatformMenu#m_exporter..resetcxx . . $ QScopedPointer#reset(ebd0a1552f8ce24f).(new LomiriMenuExportercxx . . $ LomiriMenuExporter#(this));
295 m_exportercxx . . $ LomiriPlatformMenu#m_exporter.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).exportModelscxx . . $ LomiriGMenuModelExporter#exportModels(49f6e7a06ebc5aa8).();
296 }
297
298 if (parentWindow != m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.) {
299 if (m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.) {
300 m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).unregisterMenucxx . . $ LomiriMenuRegistrar#unregisterMenu(49f6e7a06ebc5aa8).();
301 }
302
303 m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow. = parentWindow;
304
305 if (m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.) {
306 if (!cxx . . $ QScopedPointer#`operator!`(50ce9a9e25b4a850).m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.) m_registrarcxx . . $ LomiriPlatformMenu#m_registrar..resetcxx . . $ QScopedPointer#reset(ebd0a1552f8ce24f).(new LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#LomiriMenuRegistrar(49f6e7a06ebc5aa8).);
307 m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).registerMenuForWindowcxx . . $ LomiriMenuRegistrar#registerMenuForWindow(ec3123c1967ea00e).(const_cast<QWindowcxx . . $ QWindow#*>(m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.),
308 QDBusObjectPathcxx . . $ QDBusObjectPath#QDBusObjectPath(e1217c004a86c950).(m_exportercxx . . $ LomiriPlatformMenu#m_exporter.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).menuPathcxx . . $ LomiriGMenuModelExporter#menuPath(6ef7b6c27b00b43d).()));
309 }
310 }
311
312 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(targetRect);
313 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(item);
314 setVisiblecxx . . $ LomiriPlatformMenu#setVisible(b45ddcbc8423892c).(true);
315 }
316
317 void LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::dismisscxx . . $ LomiriPlatformMenu#dismiss(49f6e7a06ebc5aa8).()
318 {
319 MENU_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:30:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
320
321 if (m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.) { m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).unregisterMenucxx . . $ LomiriMenuRegistrar#unregisterMenu(49f6e7a06ebc5aa8).(); }
322 if (m_exportercxx . . $ LomiriPlatformMenu#m_exporter.) { m_exportercxx . . $ LomiriPlatformMenu#m_exporter.->cxx . . $ QScopedPointer#`operator->`(5a2a78a048fb49a8).unexportModelscxx . . $ LomiriGMenuModelExporter#unexportModels(49f6e7a06ebc5aa8).(); }
323 }
324
325 QPlatformMenuItemcxx . . $ QPlatformMenuItem# *LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::menuItemAtcxx . . $ LomiriPlatformMenu#menuItemAt(10800f69e57c2545).(int position) const
326 {
327 if (position < 0 || position >= m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..countcxx . . $ QList#count(455f465bc33b4cdf).()) return nullptr;
328 return m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems..atcxx . . $ QList#at(e2681f9bb6b2f357).(position);
329 }
330
331 QPlatformMenuItemcxx . . $ QPlatformMenuItem# *LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::menuItemForTagcxx . . $ LomiriPlatformMenu#menuItemForTag(2c391c6929eb03bf).(quintptrcxx . . $ quintptr# tag) const
332 {
333 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(QPlatformMenuItem* menuItem, m_menuItems) {
334 if (menuItem->tagcxx . . $ QPlatformMenuItem#tag(1c5fc1fd41a99ae7).() == tag) {
335 return menuItem;
336 }
337 }
338 return nullptr;
339 }
340
341 QPlatformMenuItemcxx . . $ QPlatformMenuItem# *LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::createMenuItemcxx . . $ LomiriPlatformMenu#createMenuItem(23060c72e954fe3c).() const
342 {
343 return new LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#();
344 }
345
346 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(5, 6, 0)
347 QPlatformMenucxx . . $ QPlatformMenu# *LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::createSubMenucxx . . $ LomiriPlatformMenu#createSubMenu(15223643a8dbaac4).() const
348 {
349 return new LomiriPlatformMenucxx . . $ LomiriPlatformMenu#();
350 }
351 #endif
352
353 const QListcxx . . $ QList#<QPlatformMenuItemcxx . . $ QPlatformMenuItem# *> LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::menuItemscxx . . $ LomiriPlatformMenu#menuItems(70857b704fa91c2a).() const
354 {
355 return m_menuItemscxx . . $ QList#QList(3d2301cfd89f773a).;
356 }
357
358 QDebugcxx . . $ QDebug# LomiriPlatformMenucxx . . $ LomiriPlatformMenu#::operatorcxx . . $ LomiriPlatformMenu#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream)
359 {
360 stream.nospacecxx . . $ QDebug#nospace(56428bd51055c476).().noquotecxx . . $ QDebug#noquote(56428bd51055c476).() <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(bc823072288cbbb5).(""cxx . . $ QString#QString(85c52e162fed56f9)., logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion., QLatin1Charcxx . . $ QChar#QChar(3c55a7a0aea1b63a).('\t'))
361 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "LomiriPlatformMenu(this=" <<cxx . . $ QDebug#`operator<<`(4f783e5a5d632c7c). (void*)this <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", text=\"" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_textcxx . . $ LomiriPlatformMenu#m_text. <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "\")" <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). Qtcxx . . $ Qt/::endlcxx . . $ Qt/endl(e06208c9acdf85a).;
362 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(QPlatformMenuItem* item, m_menuItems) {
363 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.++;
364 auto myItem = static_cast<LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#*>(item);
365 if (myItem) {
366 streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d). <<cxx . . $ `operator<<`(d6f007c0bf67bd2c). myItem;
367 }
368 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.--;
369 }
370 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
371 }
372
373 //////////////////////////////////////////////////////////////
374
375 LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#LomiriPlatformMenuItem(49f6e7a06ebc5aa8).()
376 : m_menucxx . . $ LomiriPlatformMenuItem#m_menu.(nullptr)
377 , m_tagcxx . . $ LomiriPlatformMenuItem#m_tag.(reinterpret_cast<quintptrcxx . . $ quintptr#>(this))
378 {
379 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
380 }
381
382 LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::~cxx . . $ LomiriPlatformMenuItem#`~LomiriPlatformMenuItem`(49f6e7a06ebc5aa8).LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#()
383 {
384 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "()";
385 }
386
387 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setTagcxx . . $ LomiriPlatformMenuItem#setTag(891dc3055356b409).(quintptrcxx . . $ quintptr# tag)
388 {
389 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(tag=" <<cxx . . $ QDebug#`operator<<`(2f02df98fe98a6d). tag <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
390 m_tagcxx . . $ LomiriPlatformMenuItem#m_tag. = tag;
391 }
392
393 quintptrcxx . . $ quintptr# LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::tagcxx . . $ LomiriPlatformMenuItem#tag(1c5fc1fd41a99ae7).() const
394 {
395 return m_tagcxx . . $ LomiriPlatformMenuItem#m_tag.;
396 }
397
398 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setTextcxx . . $ LomiriPlatformMenuItem#setText(3520e46b33348bf6).(const QStringcxx . . $ QString# &text)
399 {
400 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(text=" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). text <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
401 if (m_textcxx . . $ LomiriPlatformMenuItem#m_text. !=cxx . . $ `operator!=`(edf9e4f73813982f). text) {
402 m_textcxx . . $ LomiriPlatformMenuItem#m_text. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). text;
403 }
404 }
405
406 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setIconcxx . . $ LomiriPlatformMenuItem#setIcon(71dcdac178620ed6).(const QIconcxx . . $ QIcon# &icon)
407 {
408 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(icon=" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). icon.namecxx . . $ QIcon#name(6ef7b6c27b00b43d).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
409
410 if (!icon.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).() || (!m_iconcxx . . $ LomiriPlatformMenuItem#m_icon..isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).() && icon.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).())) {
411 m_iconcxx . . $ LomiriPlatformMenuItem#m_icon. =cxx . . $ QIcon#`operator=`(68c32cb828cec48). icon;
412 }
413 }
414
415 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setVisiblecxx . . $ LomiriPlatformMenuItem#setVisible(b45ddcbc8423892c).(bool isVisible)
416 {
417 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(visible=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). isVisible <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
418 if (m_visiblecxx . . $ LomiriPlatformMenuItem#m_visible. != isVisible) {
419 m_visiblecxx . . $ LomiriPlatformMenuItem#m_visible. = isVisible;
420 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! visibleChangedcxx . . $ LomiriPlatformMenuItem#visibleChanged(b45ddcbc8423892c).(m_visiblecxx . . $ LomiriPlatformMenuItem#m_visible.);
421 }
422 }
423
424 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setIsSeparatorcxx . . $ LomiriPlatformMenuItem#setIsSeparator(b45ddcbc8423892c).(bool isSeparator)
425 {
426 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(separator=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). isSeparator <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
427 if (m_separatorcxx . . $ LomiriPlatformMenuItem#m_separator. != isSeparator) {
428 m_separatorcxx . . $ LomiriPlatformMenuItem#m_separator. = isSeparator;
429 }
430 }
431
432 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setFontcxx . . $ LomiriPlatformMenuItem#setFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont# &font)
433 {
434 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(font=" <<cxx . . $ `operator<<`(712f147a5c6b2491). font <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
435 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(font);
436 }
437
438 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setRolecxx . . $ LomiriPlatformMenuItem#setRole(e8cdc8578b17c62c).(QPlatformMenuItemcxx . . $ QPlatformMenuItem#::MenuRolecxx . . $ QPlatformMenuItem#MenuRole# role)
439 {
440 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(role=" <<cxx . . $ `operator<<`(e0b5661fe915dc2d). role <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
441 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(role);
442 }
443
444 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setCheckablecxx . . $ LomiriPlatformMenuItem#setCheckable(b45ddcbc8423892c).(bool checkable)
445 {
446 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(checkable=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). checkable <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
447 if (m_checkablecxx . . $ LomiriPlatformMenuItem#m_checkable. != checkable) {
448 m_checkablecxx . . $ LomiriPlatformMenuItem#m_checkable. = checkable;
449 }
450 }
451
452 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setCheckedcxx . . $ LomiriPlatformMenuItem#setChecked(b45ddcbc8423892c).(bool isChecked)
453 {
454 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(checked=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). isChecked <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
455 if (m_checkedcxx . . $ LomiriPlatformMenuItem#m_checked. != isChecked) {
456 m_checkedcxx . . $ LomiriPlatformMenuItem#m_checked. = isChecked;
457 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! checkedChangedcxx . . $ LomiriPlatformMenuItem#checkedChanged(b45ddcbc8423892c).(isChecked);
458 }
459 }
460
461 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setShortcutcxx . . $ LomiriPlatformMenuItem#setShortcut(462600f892e8a1ee).(const QKeySequencecxx . . $ QKeySequence# &shortcut)
462 {
463 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(shortcut=" <<cxx . . $ `operator<<`(76095f0dcc2bf72d). shortcut <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
464 if (m_shortcutcxx . . $ LomiriPlatformMenuItem#m_shortcut. !=cxx . . $ QKeySequence#`operator!=`(5e91473cb591b4cd). shortcut) {
465 m_shortcutcxx . . $ LomiriPlatformMenuItem#m_shortcut. =cxx . . $ QKeySequence#`operator=`(6bd9aa6c7b0adf00). shortcut;
466 }
467 }
468
469 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setEnabledcxx . . $ LomiriPlatformMenuItem#setEnabled(b45ddcbc8423892c).(bool enabled)
470 {
471 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(enabled=" <<cxx . . $ QDebug#`operator<<`(4e09def0874f8c94). enabled <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
472 if (m_enabledcxx . . $ LomiriPlatformMenuItem#m_enabled. != enabled) {
473 m_enabledcxx . . $ LomiriPlatformMenuItem#m_enabled. = enabled;
474 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! enabledChangedcxx . . $ LomiriPlatformMenuItem#enabledChanged(b45ddcbc8423892c).(enabled);
475 }
476 }
477
478 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setIconSizecxx . . $ LomiriPlatformMenuItem#setIconSize(d4f767463ce0a6b3).(int size)
479 {
480 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(size=" <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). size <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
481 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(size);
482 }
483
484 void LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::setMenucxx . . $ LomiriPlatformMenuItem#setMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu)
485 {
486 ITEM_DEBUG_MSGcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.cpp:31:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "(menu=" <<cxx . . $ `operator<<`(31d1e923961dacbd). menu <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")";
487 if (m_menucxx . . $ LomiriPlatformMenuItem#m_menu. != menu) {
488 m_menucxx . . $ LomiriPlatformMenuItem#m_menu. = menu;
489
490 if (menu) {
491 connectcxx . . $ QObject#connect(d9dbe0c0ad4eecec).(menu, &QObjectcxx . . $ QObject#::destroyedcxx . . $ QObject#destroyed(749de1b6ae65bddd).,
492 this, [this] { setMenucxx . . $ LomiriPlatformMenuItem#setMenu(fd7767a6ade6aeec).(nullptr); });
493 }
494 }
495 }
496
497 QPlatformMenucxx . . $ QPlatformMenu# *LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::menucxx . . $ LomiriPlatformMenuItem#menu(15223643a8dbaac4).() const
498 {
499 return m_menucxx . . $ LomiriPlatformMenuItem#m_menu.;
500 }
501
502 QDebugcxx . . $ QDebug# LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#::operatorcxx . . $ LomiriPlatformMenuItem#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream)
503 {
504 QStringcxx . . $ QString# properties = "text=\""cxx . . $ QString#QString(3520e46b33348bf6). +cxx . . $ operator+(c75c3ae4eb9af1a8). m_textcxx . . $ LomiriPlatformMenuItem#m_text. +cxx . . $ operator+(3d22f08efddf8107). "\"";
505
506 stream.nospacecxx . . $ QDebug#nospace(56428bd51055c476).().noquotecxx . . $ QDebug#noquote(56428bd51055c476).() <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(bc823072288cbbb5).(""cxx . . $ QString#QString(85c52e162fed56f9)., logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion., QLatin1Charcxx . . $ QChar#QChar(3c55a7a0aea1b63a).('\t'))
507 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "LomiriPlatformMenuItem(this=" <<cxx . . $ QDebug#`operator<<`(4f783e5a5d632c7c). (void*)this <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ", "
508 <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). (m_separatorcxx . . $ LomiriPlatformMenuItem#m_separator. ? "Separator"cxx . . $ QString#QString(e1217c004a86c950). : propertiescxx . . $ QString#QString(3520e46b33348bf6).) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ")" <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). Qtcxx . . $ Qt/::endlcxx . . $ Qt/endl(e06208c9acdf85a).;
509 if (m_menucxx . . $ LomiriPlatformMenuItem#m_menu.) {
510 auto myMenu = static_cast<LomiriPlatformMenucxx . . $ LomiriPlatformMenu#*>(m_menucxx . . $ LomiriPlatformMenuItem#m_menu.);
511 if (myMenu) {
512 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.++;
513 streamcxx . . $ QDebug#QDebug(4fc8be04ce84e07d). <<cxx . . $ `operator<<`(16cf31c6401931cb). myMenu;
514 logRecusioncxx . . $ `$anonymous_namespace_src/lomiriappmenu/gmenumodelplatformmenu.cpp`/logRecusion.--;
515 }
516 }
517 return streamcxx . . $ QDebug#QDebug(3613488adeda74d9).;
518 }