7#include <private/qdebug_p.h>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
33
34
37
38
39
40
41
42
45
46
47
48
49
50
53
54
55
56
57
61
62
63
64
65
66
69
70
71
72
73
74
77
78
79
80
83
84
85
86
90
91
92
93
96
97
98
99
102
103
104
105
108
109
110
111
114
115
116
117
120
121
122
123
126
127
128
129
130
131
132
133
134
135
138
139
140
141
142
143
144
145
146
147
150
151
152
153
154
155
156
157
158
159
162
163
164
165
166
167
168
169
170
171
174
175
176
177
178
179
180
181
182
183
186
187
188
189
190
191
192
193
194
195
198
199
200
201
202
203
204
205
206
207
208
211
212
213
214
215
216
217
218
219
220
221
224
225
226
227
228
229
230
231
232
233
234
237
238
239
240
241
242
243
244
245
246
249
250
251
252
253
254
255
256
257
258
259
262
263
264
265
266
267
268
271
272
273
274
275
276
277
280
281
282
283
284
285
286
287
288
289
292
293
294
295
296
297
298
299
300
303
304
305
306
307
308
309
310
311
314
315
316
317
318
319
320
321
324
325
326
327
328
329
330
331
334
335
336
337
338
339
340
341
342
345
346
347
348
349
350
351
352
353
354
357
358
359
360
361
362
363
364
365
368
369
370
371
372
373
374
375
378
379
380
381
382
383
384
387
388
389#ifndef QT_NO_DATASTREAM
391
392
393
394
395
396
397
398
400QDataStream &operator<<(QDataStream &s,
const QMargins &m)
402 s << m.left() << m.top() << m.right() << m.bottom();
407
408
409
410
411
412
413
414
418 int left, top, right, bottom;
427#ifndef QT_NO_DEBUG_STREAM
430 QDebugStateSaver saver(dbg);
432 dbg <<
"QMargins" <<
'(';
433 QtDebugUtils::formatQMargins(dbg, m);
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
461
462
465
466
467
468
469
470
473
474
475
476
477
478
479
482
483
484
485
486
487
490
491
492
493
494
495
496
500
501
502
503
504
505
508
509
510
511
512
513
516
517
518
519
522
523
524
525
529
530
531
532
535
536
537
538
541
542
543
544
547
548
549
550
553
554
555
556
557
558
559
560
561
562
565
566
567
568
569
570
571
572
573
574
577
578
579
580
581
582
583
584
587
588
589
590
591
592
593
594
597
598
599
600
601
602
603
604
607
608
609
610
611
612
613
614
617
618
619
620
621
622
623
624
627
628
629
630
631
632
633
634
635
638
639
640
641
642
643
644
645
646
649
650
651
652
653
654
655
656
657
658
659
662
663
664
665
666
667
668
669
670
671
672
675
676
677
678
679
682
683
684
685
686
689
690
691
692
693
694
695
698
699
700
701
702
703
704
707
708
709
710
711
712
713
714
717
718
719
720
721
722
723
724
727
728
729
730
731
732
733
736
737
738
739
740
741
742
743
744
747
748
749
750
751
752
753
754
755
758
759
760
761
762
763
766
767
768
769
770
771
774
775
776#ifndef QT_NO_DATASTREAM
778
779
780
781
782
783
784
785
787QDataStream &operator<<(QDataStream &s,
const QMarginsF &m)
789 s <<
double(m.left()) <<
double(m.top()) <<
double(m.right()) <<
double(m.bottom());
794
795
796
797
798
799
800
801
805 double left, top, right, bottom;
810 m =
QMarginsF(qreal(left), qreal(top), qreal(right), qreal(bottom));
815#ifndef QT_NO_DEBUG_STREAM
818 QDebugStateSaver saver(dbg);
820 dbg <<
"QMarginsF" <<
'(';
821 QtDebugUtils::formatQMargins(dbg, m);
constexpr void setTop(int top) noexcept
Sets the Top margin to Top.
constexpr void setBottom(int bottom) noexcept
Sets the bottom margin to bottom.
constexpr void setLeft(int left) noexcept
Sets the left margin to left.
constexpr void setRight(int right) noexcept
Sets the right margin to right.
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QMargins &m)
QDebug operator<<(QDebug dbg, const QMarginsF &m)
QDataStream & operator>>(QDataStream &s, QMargins &m)
QDataStream & operator>>(QDataStream &s, QMarginsF &m)