qmainwindow.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/widgets/widgets/qmainwindow.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8class QMainWindowPrivate : public QWidgetPrivate-
9{-
10 inline QMainWindow* q_func() { return static_cast<QMainWindow *>(q_ptr); } inline const QMainWindow* q_func() const { return static_cast<const QMainWindow *>(q_ptr); } friend class QMainWindow;-
11public:-
12 inline QMainWindowPrivate()-
13 : layout(0), explicitIconSize(false), toolButtonStyle(Qt::ToolButtonIconOnly)-
14 , hasOldCursor(false) , cursorAdjusted(false)-
15-
16 { }
never executed: end of block
0
17 QMainWindowLayout *layout;-
18 QSize iconSize;-
19 bool explicitIconSize;-
20 Qt::ToolButtonStyle toolButtonStyle;-
21-
22-
23-
24-
25-
26-
27-
28 void init();-
29 QList<int> hoverSeparator;-
30 QPoint hoverPos;-
31-
32-
33 QCursor separatorCursor(const QList<int> &path) const;-
34 void adjustCursor(const QPoint &pos);-
35 QCursor oldCursor;-
36 QCursor adjustedCursor;-
37 uint hasOldCursor : 1;-
38 uint cursorAdjusted : 1;-
39-
40-
41 static inline QMainWindowLayout *mainWindowLayout(const QMainWindow *mainWindow)-
42 {-
43 return
never executed: return mainWindow ? mainWindow->d_func()->layout : static_cast<QMainWindowLayout *>(0);
mainWindow ? mainWindow->d_func()->layout : static_cast<QMainWindowLayout *>(0);
never executed: return mainWindow ? mainWindow->d_func()->layout : static_cast<QMainWindowLayout *>(0);
0
44 }-
45};-
46-
47QMainWindowLayout *qt_mainwindow_layout(const QMainWindow *mainWindow)-
48{-
49 return
never executed: return QMainWindowPrivate::mainWindowLayout(mainWindow);
QMainWindowPrivate::mainWindowLayout(mainWindow);
never executed: return QMainWindowPrivate::mainWindowLayout(mainWindow);
0
50}-
51void QMainWindowPrivate::init()-
52{-
53 QMainWindow * const q = q_func();-
54 layout = new QMainWindowLayout(q, 0);-
55-
56-
57 const int metric = q->style()->pixelMetric(QStyle::PM_ToolBarIconSize, 0, q);-
58 iconSize = QSize(metric, metric);-
59 q->setAttribute(Qt::WA_Hover);-
60}
never executed: end of block
0
61QMainWindow::QMainWindow(QWidget *parent, Qt::WindowFlags flags)-
62 : QWidget(*(new QMainWindowPrivate()), parent, flags | Qt::Window)-
63{-
64 d_func()->init();-
65}
never executed: end of block
0
66-
67-
68-
69-
70-
71QMainWindow::~QMainWindow()-
72{ }-
73void QMainWindow::setDockOptions(DockOptions opt)-
74{-
75 QMainWindowPrivate * const d = d_func();-
76 d->layout->setDockOptions(opt);-
77}
never executed: end of block
0
78-
79QMainWindow::DockOptions QMainWindow::dockOptions() const-
80{-
81 const QMainWindowPrivate * const d = d_func();-
82 return
never executed: return d->layout->dockOptions;
d->layout->dockOptions;
never executed: return d->layout->dockOptions;
0
83}-
84-
85QSize QMainWindow::iconSize() const-
86{ return
never executed: return d_func()->iconSize;
d_func()->iconSize;
never executed: return d_func()->iconSize;
}
0
87-
88void QMainWindow::setIconSize(const QSize &iconSize)-
89{-
90 QMainWindowPrivate * const d = d_func();-
91 QSize sz = iconSize;-
92 if (!sz.isValid()
!sz.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
93 const int metric = style()->pixelMetric(QStyle::PM_ToolBarIconSize, 0, this);-
94 sz = QSize(metric, metric);-
95 }
never executed: end of block
0
96 if (d->iconSize != sz
d->iconSize != szDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
97 d->iconSize = sz;-
98 iconSizeChanged(d->iconSize);-
99 }
never executed: end of block
0
100 d->explicitIconSize = iconSize.isValid();-
101}
never executed: end of block
0
102Qt::ToolButtonStyle QMainWindow::toolButtonStyle() const-
103{ return
never executed: return d_func()->toolButtonStyle;
d_func()->toolButtonStyle;
never executed: return d_func()->toolButtonStyle;
}
0
104-
105void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)-
106{-
107 QMainWindowPrivate * const d = d_func();-
108 if (d->toolButtonStyle == toolButtonStyle
d->toolButtonS...oolButtonStyleDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
109 return;
never executed: return;
0
110 d->toolButtonStyle = toolButtonStyle;-
111 toolButtonStyleChanged(d->toolButtonStyle);-
112}
never executed: end of block
0
113QMenuBar *QMainWindow::menuBar() const-
114{-
115 QMenuBar *menuBar = qobject_cast<QMenuBar *>(layout()->menuBar());-
116 if (!menuBar
!menuBarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
117 QMainWindow *self = const_cast<QMainWindow *>(this);-
118 menuBar = new QMenuBar(self);-
119 self->setMenuBar(menuBar);-
120 }
never executed: end of block
0
121 return
never executed: return menuBar;
menuBar;
never executed: return menuBar;
0
122}-
123void QMainWindow::setMenuBar(QMenuBar *menuBar)-
124{-
125 QLayout *topLayout = layout();-
126-
127 if (topLayout->menuBar()
topLayout->menuBar()Description
TRUEnever evaluated
FALSEnever evaluated
&& topLayout->menuBar() != menuBar
topLayout->men...r() != menuBarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
128-
129 QMenuBar *oldMenuBar = qobject_cast<QMenuBar *>(topLayout->menuBar());-
130 if (menuBar
menuBarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
131-
132 QWidget *cornerWidget = oldMenuBar->cornerWidget(Qt::TopLeftCorner);-
133 if (cornerWidget
cornerWidgetDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
134 menuBar->setCornerWidget(cornerWidget, Qt::TopLeftCorner);
never executed: menuBar->setCornerWidget(cornerWidget, Qt::TopLeftCorner);
0
135-
136 cornerWidget = oldMenuBar->cornerWidget(Qt::TopRightCorner);-
137 if (cornerWidget
cornerWidgetDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
138 menuBar->setCornerWidget(cornerWidget, Qt::TopRightCorner);
never executed: menuBar->setCornerWidget(cornerWidget, Qt::TopRightCorner);
0
139 }
never executed: end of block
0
140 oldMenuBar->hide();-
141 oldMenuBar->deleteLater();-
142 }
never executed: end of block
0
143 topLayout->setMenuBar(menuBar);-
144}
never executed: end of block
0
145-
146-
147-
148-
149-
150-
151-
152QWidget *QMainWindow::menuWidget() const-
153{-
154 QWidget *menuBar = d_func()->layout->menuBar();-
155 return
never executed: return menuBar;
menuBar;
never executed: return menuBar;
0
156}-
157void QMainWindow::setMenuWidget(QWidget *menuBar)-
158{-
159 QMainWindowPrivate * const d = d_func();-
160 if (d->layout->menuBar()
d->layout->menuBar()Description
TRUEnever evaluated
FALSEnever evaluated
&& d->layout->menuBar() != menuBar
d->layout->men...r() != menuBarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
161 d->layout->menuBar()->hide();-
162 d->layout->menuBar()->deleteLater();-
163 }
never executed: end of block
0
164 d->layout->setMenuBar(menuBar);-
165}
never executed: end of block
0
166QStatusBar *QMainWindow::statusBar() const-
167{-
168 QStatusBar *statusbar = d_func()->layout->statusBar();-
169 if (!statusbar
!statusbarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
170 QMainWindow *self = const_cast<QMainWindow *>(this);-
171 statusbar = new QStatusBar(self);-
172 statusbar->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);-
173 self->setStatusBar(statusbar);-
174 }
never executed: end of block
0
175 return
never executed: return statusbar;
statusbar;
never executed: return statusbar;
0
176}-
177void QMainWindow::setStatusBar(QStatusBar *statusbar)-
178{-
179 QMainWindowPrivate * const d = d_func();-
180 if (d->layout->statusBar()
d->layout->statusBar()Description
TRUEnever evaluated
FALSEnever evaluated
&& d->layout->statusBar() != statusbar
d->layout->sta...) != statusbarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
181 d->layout->statusBar()->hide();-
182 d->layout->statusBar()->deleteLater();-
183 }
never executed: end of block
0
184 d->layout->setStatusBar(statusbar);-
185}
never executed: end of block
0
186QWidget *QMainWindow::centralWidget() const-
187{ return
never executed: return d_func()->layout->centralWidget();
d_func()->layout->centralWidget();
never executed: return d_func()->layout->centralWidget();
}
0
188void QMainWindow::setCentralWidget(QWidget *widget)-
189{-
190 QMainWindowPrivate * const d = d_func();-
191 if (d->layout->centralWidget()
d->layout->centralWidget()Description
TRUEnever evaluated
FALSEnever evaluated
&& d->layout->centralWidget() != widget
d->layout->cen...et() != widgetDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
192 d->layout->centralWidget()->hide();-
193 d->layout->centralWidget()->deleteLater();-
194 }
never executed: end of block
0
195 d->layout->setCentralWidget(widget);-
196}
never executed: end of block
0
197QWidget *QMainWindow::takeCentralWidget()-
198{-
199 QMainWindowPrivate * const d = d_func();-
200 QWidget *oldcentralwidget = d->layout->centralWidget();-
201 if (oldcentralwidget
oldcentralwidgetDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
202 oldcentralwidget->setParent(0);-
203 d->layout->setCentralWidget(0);-
204 }
never executed: end of block
0
205 return
never executed: return oldcentralwidget;
oldcentralwidget;
never executed: return oldcentralwidget;
0
206}-
207void QMainWindow::setCorner(Qt::Corner corner, Qt::DockWidgetArea area)-
208{-
209 bool valid = false;-
210 switch (corner) {-
211 case
never executed: case Qt::TopLeftCorner:
Qt::TopLeftCorner:
never executed: case Qt::TopLeftCorner:
0
212 valid = (area == Qt::TopDockWidgetArea
area == Qt::TopDockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
|| area == Qt::LeftDockWidgetArea
area == Qt::LeftDockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
213 break;
never executed: break;
0
214 case
never executed: case Qt::TopRightCorner:
Qt::TopRightCorner:
never executed: case Qt::TopRightCorner:
0
215 valid = (area == Qt::TopDockWidgetArea
area == Qt::TopDockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
|| area == Qt::RightDockWidgetArea
area == Qt::Ri...DockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
216 break;
never executed: break;
0
217 case
never executed: case Qt::BottomLeftCorner:
Qt::BottomLeftCorner:
never executed: case Qt::BottomLeftCorner:
0
218 valid = (area == Qt::BottomDockWidgetArea
area == Qt::Bo...DockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
|| area == Qt::LeftDockWidgetArea
area == Qt::LeftDockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
219 break;
never executed: break;
0
220 case
never executed: case Qt::BottomRightCorner:
Qt::BottomRightCorner:
never executed: case Qt::BottomRightCorner:
0
221 valid = (area == Qt::BottomDockWidgetArea
area == Qt::Bo...DockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
|| area == Qt::RightDockWidgetArea
area == Qt::Ri...DockWidgetAreaDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
222 break;
never executed: break;
0
223 }-
224 if (__builtin_expect(!!(!valid), false)
__builtin_expe...valid), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
225 QMessageLogger(__FILE__, 705, __PRETTY_FUNCTION__).warning("QMainWindow::setCorner(): 'area' is not valid for 'corner'");
never executed: QMessageLogger(__FILE__, 705, __PRETTY_FUNCTION__).warning("QMainWindow::setCorner(): 'area' is not valid for 'corner'");
0
226 else-
227 d_func()->layout->setCorner(corner, area);
never executed: d_func()->layout->setCorner(corner, area);
0
228}-
229-
230-
231-
232-
233-
234-
235-
236Qt::DockWidgetArea QMainWindow::corner(Qt::Corner corner) const-
237{ return
never executed: return d_func()->layout->corner(corner);
d_func()->layout->corner(corner);
never executed: return d_func()->layout->corner(corner);
}
0
238-
239-
240-
241-
242static bool checkToolBarArea(Qt::ToolBarArea area, const char *where)-
243{-
244 switch (area) {-
245 case
never executed: case Qt::LeftToolBarArea:
Qt::LeftToolBarArea:
never executed: case Qt::LeftToolBarArea:
0
246 case
never executed: case Qt::RightToolBarArea:
Qt::RightToolBarArea:
never executed: case Qt::RightToolBarArea:
0
247 case
never executed: case Qt::TopToolBarArea:
Qt::TopToolBarArea:
never executed: case Qt::TopToolBarArea:
0
248 case
never executed: case Qt::BottomToolBarArea:
Qt::BottomToolBarArea:
never executed: case Qt::BottomToolBarArea:
0
249 return
never executed: return true;
true;
never executed: return true;
0
250 default
never executed: default:
:
never executed: default:
0
251 break;
never executed: break;
0
252 }-
253 QMessageLogger(__FILE__, 733, __PRETTY_FUNCTION__).warning("%s: invalid 'area' argument", where);-
254 return
never executed: return false;
false;
never executed: return false;
0
255}-
256-
257-
258-
259-
260-
261void QMainWindow::addToolBarBreak(Qt::ToolBarArea area)-
262{-
263 if (!checkToolBarArea(area, "QMainWindow::addToolBarBreak")
!checkToolBarA...ToolBarBreak")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
264 return;
never executed: return;
0
265 d_func()->layout->addToolBarBreak(area);-
266}
never executed: end of block
0
267-
268-
269-
270-
271void QMainWindow::insertToolBarBreak(QToolBar *before)-
272{ d_func()->layout->insertToolBarBreak(before); }
never executed: end of block
0
273-
274-
275-
276-
277-
278void QMainWindow::removeToolBarBreak(QToolBar *before)-
279{-
280 QMainWindowPrivate * const d = d_func();-
281 d->layout->removeToolBarBreak(before);-
282}
never executed: end of block
0
283void QMainWindow::addToolBar(Qt::ToolBarArea area, QToolBar *toolbar)-
284{-
285 if (!checkToolBarArea(area, "QMainWindow::addToolBar")
!checkToolBarA...::addToolBar")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
286 return;
never executed: return;
0
287-
288 QMainWindowPrivate * const d = d_func();-
289-
290 disconnect(this, qFlagLocation("2""iconSizeChanged(QSize)" "\0" __FILE__ ":" "779"),-
291 toolbar, qFlagLocation("1""_q_updateIconSize(QSize)" "\0" __FILE__ ":" "780"));-
292 disconnect(this, qFlagLocation("2""toolButtonStyleChanged(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "781"),-
293 toolbar, qFlagLocation("1""_q_updateToolButtonStyle(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "782"));-
294-
295 if(toolbar->d_func()->state
toolbar->d_func()->stateDescription
TRUEnever evaluated
FALSEnever evaluated
&& toolbar->d_func()->state->dragging
toolbar->d_fun...tate->draggingDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
296-
297-
298 bool animated = isAnimated();-
299 setAnimated(false);-
300-
301 toolbar->d_func()->endDrag();-
302-
303 setAnimated(animated);-
304-
305 }
never executed: end of block
0
306-
307 if (!d->layout->usesHIToolBar(toolbar)
!d->layout->us...olBar(toolbar)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
308 d->layout->removeWidget(toolbar);-
309 }
never executed: end of block
else {
0
310 d->layout->removeToolBar(toolbar);-
311 }
never executed: end of block
0
312-
313 toolbar->d_func()->_q_updateIconSize(d->iconSize);-
314 toolbar->d_func()->_q_updateToolButtonStyle(d->toolButtonStyle);-
315 connect(this, qFlagLocation("2""iconSizeChanged(QSize)" "\0" __FILE__ ":" "804"),-
316 toolbar, qFlagLocation("1""_q_updateIconSize(QSize)" "\0" __FILE__ ":" "805"));-
317 connect(this, qFlagLocation("2""toolButtonStyleChanged(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "806"),-
318 toolbar, qFlagLocation("1""_q_updateToolButtonStyle(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "807"));-
319-
320 d->layout->addToolBar(area, toolbar);-
321}
never executed: end of block
0
322-
323-
324-
325-
326void QMainWindow::addToolBar(QToolBar *toolbar)-
327{ addToolBar(Qt::TopToolBarArea, toolbar); }
never executed: end of block
0
328QToolBar *QMainWindow::addToolBar(const QString &title)-
329{-
330 QToolBar *toolBar = new QToolBar(this);-
331 toolBar->setWindowTitle(title);-
332 addToolBar(toolBar);-
333 return
never executed: return toolBar;
toolBar;
never executed: return toolBar;
0
334}-
335void QMainWindow::insertToolBar(QToolBar *before, QToolBar *toolbar)-
336{-
337 QMainWindowPrivate * const d = d_func();-
338-
339 d->layout->removeToolBar(toolbar);-
340-
341 toolbar->d_func()->_q_updateIconSize(d->iconSize);-
342 toolbar->d_func()->_q_updateToolButtonStyle(d->toolButtonStyle);-
343 connect(this, qFlagLocation("2""iconSizeChanged(QSize)" "\0" __FILE__ ":" "850"),-
344 toolbar, qFlagLocation("1""_q_updateIconSize(QSize)" "\0" __FILE__ ":" "851"));-
345 connect(this, qFlagLocation("2""toolButtonStyleChanged(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "852"),-
346 toolbar, qFlagLocation("1""_q_updateToolButtonStyle(Qt::ToolButtonStyle)" "\0" __FILE__ ":" "853"));-
347-
348 d->layout->insertToolBar(before, toolbar);-
349}
never executed: end of block
0
350-
351-
352-
353-
354-
355void QMainWindow::removeToolBar(QToolBar *toolbar)-
356{-
357 if (toolbar
toolbarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
358 d_func()->layout->removeToolBar(toolbar);-
359 toolbar->hide();-
360 }
never executed: end of block
0
361}
never executed: end of block
0
362Qt::ToolBarArea QMainWindow::toolBarArea(QToolBar *toolbar) const-
363{ return
never executed: return d_func()->layout->toolBarArea(toolbar);
d_func()->layout->toolBarArea(toolbar);
never executed: return d_func()->layout->toolBarArea(toolbar);
}
0
364bool QMainWindow::toolBarBreak(QToolBar *toolbar) const-
365{-
366 return
never executed: return d_func()->layout->toolBarBreak(toolbar);
d_func()->layout->toolBarBreak(toolbar);
never executed: return d_func()->layout->toolBarBreak(toolbar);
0
367}-
368bool QMainWindow::isAnimated() const-
369{-
370 const QMainWindowPrivate * const d = d_func();-
371 return
never executed: return d->layout->dockOptions & AnimatedDocks;
d->layout->dockOptions & AnimatedDocks;
never executed: return d->layout->dockOptions & AnimatedDocks;
0
372}-
373-
374void QMainWindow::setAnimated(bool enabled)-
375{-
376 QMainWindowPrivate * const d = d_func();-
377-
378 DockOptions opts = d->layout->dockOptions;-
379 opts.setFlag(AnimatedDocks, enabled);-
380-
381 d->layout->setDockOptions(opts);-
382}
never executed: end of block
0
383bool QMainWindow::isDockNestingEnabled() const-
384{-
385 const QMainWindowPrivate * const d = d_func();-
386 return
never executed: return d->layout->dockOptions & AllowNestedDocks;
d->layout->dockOptions & AllowNestedDocks;
never executed: return d->layout->dockOptions & AllowNestedDocks;
0
387}-
388-
389void QMainWindow::setDockNestingEnabled(bool enabled)-
390{-
391 QMainWindowPrivate * const d = d_func();-
392-
393 DockOptions opts = d->layout->dockOptions;-
394 opts.setFlag(AllowNestedDocks, enabled);-
395-
396 d->layout->setDockOptions(opts);-
397}
never executed: end of block
0
398static bool checkDockWidgetArea(Qt::DockWidgetArea area, const char *where)-
399{-
400 switch (area) {-
401 case
never executed: case Qt::LeftDockWidgetArea:
Qt::LeftDockWidgetArea:
never executed: case Qt::LeftDockWidgetArea:
0
402 case
never executed: case Qt::RightDockWidgetArea:
Qt::RightDockWidgetArea:
never executed: case Qt::RightDockWidgetArea:
0
403 case
never executed: case Qt::TopDockWidgetArea:
Qt::TopDockWidgetArea:
never executed: case Qt::TopDockWidgetArea:
0
404 case
never executed: case Qt::BottomDockWidgetArea:
Qt::BottomDockWidgetArea:
never executed: case Qt::BottomDockWidgetArea:
0
405 return
never executed: return true;
true;
never executed: return true;
0
406 default
never executed: default:
:
never executed: default:
0
407 break;
never executed: break;
0
408 }-
409 QMessageLogger(__FILE__, 1004, __PRETTY_FUNCTION__).warning("%s: invalid 'area' argument", where);-
410 return
never executed: return false;
false;
never executed: return false;
0
411}-
412bool QMainWindow::documentMode() const-
413{-
414 return
never executed: return d_func()->layout->documentMode();
d_func()->layout->documentMode();
never executed: return d_func()->layout->documentMode();
0
415}-
416-
417void QMainWindow::setDocumentMode(bool enabled)-
418{-
419 d_func()->layout->setDocumentMode(enabled);-
420}
never executed: end of block
0
421QTabWidget::TabShape QMainWindow::tabShape() const-
422{-
423 return
never executed: return d_func()->layout->tabShape();
d_func()->layout->tabShape();
never executed: return d_func()->layout->tabShape();
0
424}-
425-
426void QMainWindow::setTabShape(QTabWidget::TabShape tabShape)-
427{-
428 d_func()->layout->setTabShape(tabShape);-
429}
never executed: end of block
0
430QTabWidget::TabPosition QMainWindow::tabPosition(Qt::DockWidgetArea area) const-
431{-
432 if (!checkDockWidgetArea(area, "QMainWindow::tabPosition")
!checkDockWidg...:tabPosition")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
433 return
never executed: return QTabWidget::South;
QTabWidget::South;
never executed: return QTabWidget::South;
0
434 return
never executed: return d_func()->layout->tabPosition(area);
d_func()->layout->tabPosition(area);
never executed: return d_func()->layout->tabPosition(area);
0
435}-
436void QMainWindow::setTabPosition(Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition)-
437{-
438 d_func()->layout->setTabPosition(areas, tabPosition);-
439}
never executed: end of block
0
440-
441-
442-
443-
444-
445void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)-
446{-
447 if (!checkDockWidgetArea(area, "QMainWindow::addDockWidget")
!checkDockWidg...ddDockWidget")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
448 return;
never executed: return;
0
449-
450 Qt::Orientation orientation = Qt::Vertical;-
451 switch (area) {-
452 case
never executed: case Qt::TopDockWidgetArea:
Qt::TopDockWidgetArea:
never executed: case Qt::TopDockWidgetArea:
0
453 case
never executed: case Qt::BottomDockWidgetArea:
Qt::BottomDockWidgetArea:
never executed: case Qt::BottomDockWidgetArea:
0
454 orientation = Qt::Horizontal;-
455 break;
never executed: break;
0
456 default
never executed: default:
:
never executed: default:
0
457 break;
never executed: break;
0
458 }-
459 d_func()->layout->removeWidget(dockwidget);-
460 addDockWidget(area, dockwidget, orientation);-
461}
never executed: end of block
0
462bool QMainWindow::restoreDockWidget(QDockWidget *dockwidget)-
463{-
464 return
never executed: return d_func()->layout->restoreDockWidget(dockwidget);
d_func()->layout->restoreDockWidget(dockwidget);
never executed: return d_func()->layout->restoreDockWidget(dockwidget);
0
465}-
466-
467-
468-
469-
470-
471void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget,-
472 Qt::Orientation orientation)-
473{-
474 if (!checkDockWidgetArea(area, "QMainWindow::addDockWidget")
!checkDockWidg...ddDockWidget")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
475 return;
never executed: return;
0
476-
477-
478 d_func()->layout->addDockWidget(area, dockwidget, orientation);-
479}
never executed: end of block
0
480void QMainWindow::splitDockWidget(QDockWidget *after, QDockWidget *dockwidget,-
481 Qt::Orientation orientation)-
482{-
483 d_func()->layout->splitDockWidget(after, dockwidget, orientation);-
484}
never executed: end of block
0
485void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)-
486{-
487 d_func()->layout->tabifyDockWidget(first, second);-
488}
never executed: end of block
0
489QList<QDockWidget*> QMainWindow::tabifiedDockWidgets(QDockWidget *dockwidget) const-
490{-
491 QList<QDockWidget*> ret;-
492-
493-
494-
495 const QDockAreaLayoutInfo *info = d_func()->layout->layoutState.dockAreaLayout.info(dockwidget);-
496 if (info
infoDescription
TRUEnever evaluated
FALSEnever evaluated
&& info->tabbed
info->tabbedDescription
TRUEnever evaluated
FALSEnever evaluated
&& info->tabBar
info->tabBarDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
497 for(int i = 0; i < info->item_list.count()
i < info->item_list.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
498 const QDockAreaLayoutItem &item = info->item_list.at(i);-
499 if (item.widgetItem
item.widgetItemDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
500 if (QDockWidget *dock = qobject_cast<QDockWidget*>(item.widgetItem->widget())
QDockWidget *d...tem->widget())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
501 if (dock != dockwidget
dock != dockwidgetDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
502 ret += dock;-
503 }
never executed: end of block
0
504 }
never executed: end of block
0
505 }
never executed: end of block
0
506 }
never executed: end of block
0
507 }
never executed: end of block
0
508-
509 return
never executed: return ret;
ret;
never executed: return ret;
0
510}-
511-
512-
513-
514-
515-
516-
517void QMainWindow::removeDockWidget(QDockWidget *dockwidget)-
518{-
519 if (dockwidget
dockwidgetDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
520 d_func()->layout->removeWidget(dockwidget);-
521 dockwidget->hide();-
522 }
never executed: end of block
0
523}
never executed: end of block
0
524Qt::DockWidgetArea QMainWindow::dockWidgetArea(QDockWidget *dockwidget) const-
525{ return
never executed: return d_func()->layout->dockWidgetArea(dockwidget);
d_func()->layout->dockWidgetArea(dockwidget);
never executed: return d_func()->layout->dockWidgetArea(dockwidget);
}
0
526void QMainWindow::resizeDocks(const QList<QDockWidget *> &docks,-
527 const QList<int> &sizes, Qt::Orientation orientation)-
528{-
529 d_func()->layout->layoutState.dockAreaLayout.resizeDocks(docks, sizes, orientation);-
530 d_func()->layout->invalidate();-
531}
never executed: end of block
0
532QByteArray QMainWindow::saveState(int version) const-
533{-
534 QByteArray data;-
535 QDataStream stream(&data, QIODevice::WriteOnly);-
536 stream << QMainWindowLayout::VersionMarker;-
537 stream << version;-
538 d_func()->layout->saveState(stream);-
539 return
never executed: return data;
data;
never executed: return data;
0
540}-
541bool QMainWindow::restoreState(const QByteArray &state, int version)-
542{-
543 if (state.isEmpty()
state.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
544 return
never executed: return false;
false;
never executed: return false;
0
545 QByteArray sd = state;-
546 QDataStream stream(&sd, QIODevice::ReadOnly);-
547 int marker, v;-
548 stream >> marker;-
549 stream >> v;-
550 if (stream.status() != QDataStream::Ok
stream.status(...DataStream::OkDescription
TRUEnever evaluated
FALSEnever evaluated
|| marker != QMainWindowLayout::VersionMarker
marker != QMai...:VersionMarkerDescription
TRUEnever evaluated
FALSEnever evaluated
|| v != version
v != versionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
551 return
never executed: return false;
false;
never executed: return false;
0
552 bool restored = d_func()->layout->restoreState(stream);-
553 return
never executed: return restored;
restored;
never executed: return restored;
0
554}-
555-
556-
557QCursor QMainWindowPrivate::separatorCursor(const QList<int> &path) const-
558{-
559 QDockAreaLayoutInfo *info = layout->layoutState.dockAreaLayout.info(path);-
560 ((!(info != 0)) ? qt_assert("info != 0",__FILE__,1339) : qt_noop());-
561 if (path.size() == 1
path.size() == 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
562-
563 switch (path.first()) {-
564 case
never executed: case QInternal::LeftDock:
QInternal::LeftDock:
never executed: case QInternal::LeftDock:
0
565 case
never executed: case QInternal::RightDock:
QInternal::RightDock:
never executed: case QInternal::RightDock:
0
566 return
never executed: return Qt::SplitHCursor;
Qt::SplitHCursor;
never executed: return Qt::SplitHCursor;
0
567 case
never executed: case QInternal::TopDock:
QInternal::TopDock:
never executed: case QInternal::TopDock:
0
568 case
never executed: case QInternal::BottomDock:
QInternal::BottomDock:
never executed: case QInternal::BottomDock:
0
569 return
never executed: return Qt::SplitVCursor;
Qt::SplitVCursor;
never executed: return Qt::SplitVCursor;
0
570 default
never executed: default:
:
never executed: default:
0
571 break;
never executed: break;
0
572 }-
573 }-
574-
575-
576-
577 return
never executed: return info->o == Qt::Horizontal ? Qt::SplitHCursor : Qt::SplitVCursor;
info->o == Qt::Horizontal
never executed: return info->o == Qt::Horizontal ? Qt::SplitHCursor : Qt::SplitVCursor;
0
578 ? Qt::SplitHCursor : Qt::SplitVCursor;
never executed: return info->o == Qt::Horizontal ? Qt::SplitHCursor : Qt::SplitVCursor;
0
579}-
580-
581void QMainWindowPrivate::adjustCursor(const QPoint &pos)-
582{-
583 QMainWindow * const q = q_func();-
584-
585 hoverPos = pos;-
586-
587 if (pos == QPoint(0, 0)
pos == QPoint(0, 0)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
588 if (!hoverSeparator.isEmpty()
!hoverSeparator.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
589 q->update(layout->layoutState.dockAreaLayout.separatorRect(hoverSeparator));
never executed: q->update(layout->layoutState.dockAreaLayout.separatorRect(hoverSeparator));
0
590 hoverSeparator.clear();-
591-
592 if (cursorAdjusted
cursorAdjustedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
593 cursorAdjusted = false;-
594 if (hasOldCursor
hasOldCursorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
595 q->setCursor(oldCursor);
never executed: q->setCursor(oldCursor);
0
596 else-
597 q->unsetCursor();
never executed: q->unsetCursor();
0
598 }-
599 }
never executed: end of block
else if (layout->movingSeparator.isEmpty()
layout->moving...ator.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
600 QList<int> pathToSeparator-
601 = layout->layoutState.dockAreaLayout.findSeparator(pos);-
602-
603 if (pathToSeparator != hoverSeparator
pathToSeparato...hoverSeparatorDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
604 if (!hoverSeparator.isEmpty()
!hoverSeparator.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
605 q->update(layout->layoutState.dockAreaLayout.separatorRect(hoverSeparator));
never executed: q->update(layout->layoutState.dockAreaLayout.separatorRect(hoverSeparator));
0
606-
607 hoverSeparator = pathToSeparator;-
608-
609 if (hoverSeparator.isEmpty()
hoverSeparator.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
610 if (cursorAdjusted
cursorAdjustedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
611 cursorAdjusted = false;-
612 if (hasOldCursor
hasOldCursorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
613 q->setCursor(oldCursor);
never executed: q->setCursor(oldCursor);
0
614 else-
615 q->unsetCursor();
never executed: q->unsetCursor();
0
616 }-
617 }
never executed: end of block
else {
0
618 q->update(layout->layoutState.dockAreaLayout.separatorRect(hoverSeparator));-
619 if (!cursorAdjusted
!cursorAdjustedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
620 oldCursor = q->cursor();-
621 hasOldCursor = q->testAttribute(Qt::WA_SetCursor);-
622 }
never executed: end of block
0
623 adjustedCursor = separatorCursor(hoverSeparator);-
624 q->setCursor(adjustedCursor);-
625 cursorAdjusted = true;-
626 }
never executed: end of block
0
627 }-
628 }
never executed: end of block
0
629}
never executed: end of block
0
630-
631-
632-
633bool QMainWindow::event(QEvent *event)-
634{-
635 QMainWindowPrivate * const d = d_func();-
636 switch (event->type()) {-
637-
638-
639 case
never executed: case QEvent::Paint:
QEvent::Paint:
never executed: case QEvent::Paint:
{
0
640 QPainter p(this);-
641 QRegion r = static_cast<QPaintEvent*>(event)->region();-
642 d->layout->layoutState.dockAreaLayout.paintSeparators(&p, this, r, d->hoverPos);-
643 break;
never executed: break;
0
644 }-
645-
646-
647 case
never executed: case QEvent::HoverMove:
QEvent::HoverMove:
never executed: case QEvent::HoverMove:
{
0
648 d->adjustCursor(static_cast<QHoverEvent*>(event)->pos());-
649 break;
never executed: break;
0
650 }-
651-
652-
653-
654 case
never executed: case QEvent::HoverEnter:
QEvent::HoverEnter:
never executed: case QEvent::HoverEnter:
0
655 return
never executed: return true;
true;
never executed: return true;
0
656 case
never executed: case QEvent::HoverLeave:
QEvent::HoverLeave:
never executed: case QEvent::HoverLeave:
0
657 d->adjustCursor(QPoint(0, 0));-
658 return
never executed: return true;
true;
never executed: return true;
0
659 case
never executed: case QEvent::ShortcutOverride:
QEvent::ShortcutOverride:
never executed: case QEvent::ShortcutOverride:
0
660 d->adjustCursor(QPoint(0, 0));-
661 break;
never executed: break;
0
662-
663-
664 case
never executed: case QEvent::MouseButtonPress:
QEvent::MouseButtonPress:
never executed: case QEvent::MouseButtonPress:
{
0
665 QMouseEvent *e = static_cast<QMouseEvent*>(event);-
666 if (e->button() == Qt::LeftButton
e->button() == Qt::LeftButtonDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->layout->startSeparatorMove(e->pos())
d->layout->sta...Move(e->pos())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
667-
668 e->accept();-
669 return
never executed: return true;
true;
never executed: return true;
0
670 }-
671 break;
never executed: break;
0
672 }-
673-
674 case
never executed: case QEvent::MouseMove:
QEvent::MouseMove:
never executed: case QEvent::MouseMove:
{
0
675 QMouseEvent *e = static_cast<QMouseEvent*>(event);-
676-
677-
678 d->adjustCursor(e->pos());-
679-
680 if (e->buttons() & Qt::LeftButton
e->buttons() & Qt::LeftButtonDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
681 if (d->layout->separatorMove(e->pos())
d->layout->sep...Move(e->pos())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
682-
683 e->accept();-
684 return
never executed: return true;
true;
never executed: return true;
0
685 }-
686 }
never executed: end of block
0
687-
688 break;
never executed: break;
0
689 }-
690-
691 case
never executed: case QEvent::MouseButtonRelease:
QEvent::MouseButtonRelease:
never executed: case QEvent::MouseButtonRelease:
{
0
692 QMouseEvent *e = static_cast<QMouseEvent*>(event);-
693 if (d->layout->endSeparatorMove(e->pos())
d->layout->end...Move(e->pos())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
694-
695 e->accept();-
696 return
never executed: return true;
true;
never executed: return true;
0
697 }-
698 break;
never executed: break;
0
699 }-
700-
701-
702-
703-
704 case
never executed: case QEvent::ToolBarChange:
QEvent::ToolBarChange:
never executed: case QEvent::ToolBarChange:
{
0
705 d->layout->toggleToolBarsVisible();-
706 return
never executed: return true;
true;
never executed: return true;
0
707 }-
708-
709-
710-
711 case
never executed: case QEvent::StatusTip:
QEvent::StatusTip:
never executed: case QEvent::StatusTip:
0
712-
713 if (QStatusBar *sb = d->layout->statusBar()
QStatusBar *sb...t->statusBar()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
714 sb->showMessage(static_cast<QStatusTipEvent*>(event)->tip());
never executed: sb->showMessage(static_cast<QStatusTipEvent*>(event)->tip());
0
715 else-
716-
717 static_cast<
never executed: static_cast<QStatusTipEvent*>(event)->ignore();
QStatusTipEvent*>(event)->ignore();
never executed: static_cast<QStatusTipEvent*>(event)->ignore();
0
718 return
never executed: return true;
true;
never executed: return true;
0
719-
720-
721 case
never executed: case QEvent::StyleChange:
QEvent::StyleChange:
never executed: case QEvent::StyleChange:
0
722-
723 d->layout->layoutState.dockAreaLayout.styleChangedEvent();-
724-
725 if (!d->explicitIconSize
!d->explicitIconSizeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
726 setIconSize(QSize());
never executed: setIconSize(QSize());
0
727 break;
never executed: break;
0
728 case
never executed: case QEvent::CursorChange:
QEvent::CursorChange:
never executed: case QEvent::CursorChange:
0
729-
730-
731-
732 if (d->cursorAdjusted
d->cursorAdjustedDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->adjustedCursor.shape() != cursor().shape()
d->adjustedCur...rsor().shape()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
733 d->oldCursor = cursor();-
734 d->hasOldCursor = testAttribute(Qt::WA_SetCursor);-
735-
736-
737 setCursor(d->adjustedCursor);-
738 }
never executed: end of block
0
739 break;
never executed: break;
0
740-
741 default
never executed: default:
:
never executed: default:
0
742 break;
never executed: break;
0
743 }-
744-
745 return
never executed: return QWidget::event(event);
QWidget::event(event);
never executed: return QWidget::event(event);
0
746}-
747void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set)-
748{-
749 (void)set;-
750-
751}
never executed: end of block
0
752-
753bool QMainWindow::unifiedTitleAndToolBarOnMac() const-
754{-
755-
756-
757-
758-
759-
760-
761 return
never executed: return false;
false;
never executed: return false;
0
762}-
763-
764-
765-
766-
767-
768-
769bool QMainWindow::isSeparator(const QPoint &pos) const-
770{-
771-
772 const QMainWindowPrivate * const d = d_func();-
773 return
never executed: return !d->layout->layoutState.dockAreaLayout.findSeparator(pos).isEmpty();
!d->layout->layoutState.dockAreaLayout.findSeparator(pos).isEmpty();
never executed: return !d->layout->layoutState.dockAreaLayout.findSeparator(pos).isEmpty();
0
774-
775-
776-
777-
778}-
779-
780-
781-
782-
783-
784void QMainWindow::contextMenuEvent(QContextMenuEvent *event)-
785{-
786 event->ignore();-
787-
788-
789 QWidget *child = childAt(event->pos());-
790 while (child
childDescription
TRUEnever evaluated
FALSEnever evaluated
&& child != this
child != thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
791-
792 if (QMenuBar *mb = qobject_cast<QMenuBar *>(child)
QMenuBar *mb =...uBar *>(child)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
793 if (mb->parentWidget() != this
mb->parentWidget() != thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
794 return;
never executed: return;
0
795 break;
never executed: break;
0
796 }-
797-
798-
799 if (QDockWidget *dw = qobject_cast<QDockWidget *>(child)
QDockWidget *d...dget *>(child)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
800 if (dw->parentWidget() != this
dw->parentWidget() != thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
801 return;
never executed: return;
0
802 if (dw->widget()
dw->widget()Description
TRUEnever evaluated
FALSEnever evaluated
0
803 && dw->widget()->geometry().contains(child->mapFrom(this, event->pos()))
dw->widget()->...event->pos()))Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
804-
805 return;
never executed: return;
0
806 }-
807 break;
never executed: break;
0
808 }-
809-
810-
811 if (QToolBar *tb = qobject_cast<QToolBar *>(child)
QToolBar *tb =...lBar *>(child)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
812 if (tb->parentWidget() != this
tb->parentWidget() != thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
813 return;
never executed: return;
0
814 break;
never executed: break;
0
815 }-
816-
817 child = child->parentWidget();-
818 }
never executed: end of block
0
819 if (child == this
child == thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
820 return;
never executed: return;
0
821-
822-
823 QMenu *popup = createPopupMenu();-
824 if (popup
popupDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
825 if (!popup->isEmpty()
!popup->isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
826 popup->setAttribute(Qt::WA_DeleteOnClose);-
827 popup->popup(event->globalPos());-
828 event->accept();-
829 }
never executed: end of block
else {
0
830 delete popup;-
831 }
never executed: end of block
0
832 }-
833-
834}
never executed: end of block
0
835QMenu *QMainWindow::createPopupMenu()-
836{-
837 QMainWindowPrivate * const d = d_func();-
838 QMenu *menu = 0;-
839-
840 QList<QDockWidget *> dockwidgets = findChildren<QDockWidget *>();-
841 if (dockwidgets.size()
dockwidgets.size()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
842 menu = new QMenu(this);-
843 for (int i = 0; i < dockwidgets.size()
i < dockwidgets.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
844 QDockWidget *dockWidget = dockwidgets.at(i);-
845-
846 if (dockWidget->parentWidget() == this
dockWidget->pa...dget() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
847 if (d->layout->layoutState.dockAreaLayout.indexOf(dockWidget).isEmpty()
d->layout->lay...get).isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
848 continue;
never executed: continue;
0
849 }
never executed: end of block
else if (QDockWidgetGroupWindow *dwgw =
QDockWidgetGro...arentWidget())Description
TRUEnever evaluated
FALSEnever evaluated
0
850 qobject_cast<QDockWidgetGroupWindow *>(dockWidget->parentWidget())
QDockWidgetGro...arentWidget())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
851 if (dwgw->parentWidget() != this
dwgw->parentWidget() != thisDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
852 continue;
never executed: continue;
0
853 if (dwgw->layoutInfo()->indexOf(dockWidget).isEmpty()
dwgw->layoutIn...get).isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
854 continue;
never executed: continue;
0
855 }
never executed: end of block
else {
0
856 continue;
never executed: continue;
0
857 }-
858 menu->addAction(dockwidgets.at(i)->toggleViewAction());-
859 }
never executed: end of block
0
860 menu->addSeparator();-
861 }
never executed: end of block
0
862-
863-
864 QList<QToolBar *> toolbars = findChildren<QToolBar *>();-
865 if (toolbars.size()
toolbars.size()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
866 if (!menu
!menuDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
867 menu = new QMenu(this);
never executed: menu = new QMenu(this);
0
868 for (int i = 0; i < toolbars.size()
i < toolbars.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
869 QToolBar *toolBar = toolbars.at(i);-
870 if (toolBar->parentWidget() == this
toolBar->paren...dget() == thisDescription
TRUEnever evaluated
FALSEnever evaluated
0
871 && (
(!d->layout->l...ar).isEmpty())Description
TRUEnever evaluated
FALSEnever evaluated
!d->layout->layoutState.toolBarAreaLayout.indexOf(toolBar).isEmpty())
(!d->layout->l...ar).isEmpty())Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
872 menu->addAction(toolbars.at(i)->toggleViewAction());-
873 }
never executed: end of block
0
874 }
never executed: end of block
0
875 }
never executed: end of block
0
876-
877 (void)d;;-
878 return
never executed: return menu;
menu;
never executed: return menu;
0
879}-
880-
881-
882-
883-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9