8#include <private/qdebug_p.h>
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
34
35
38
39
40
41
42
43
46
47
48
49
50
51
54
55
56
57
58
62
63
64
65
66
67
70
71
72
73
74
75
78
79
80
81
84
85
86
87
91
92
93
94
97
98
99
100
103
104
105
106
109
110
111
112
115
116
117
118
121
122
123
124
127
128
129
130
131
132
133
134
135
136
139
140
141
142
143
144
145
146
147
148
151
152
153
154
155
156
157
158
159
160
163
164
165
166
167
168
169
170
171
172
175
176
177
178
179
180
181
182
183
184
187
188
189
190
191
192
193
194
195
196
199
200
201
202
203
204
205
206
207
208
209
212
213
214
215
216
217
218
219
220
221
222
225
226
227
228
229
230
231
232
233
234
235
238
239
240
241
242
243
244
245
246
247
250
251
252
253
254
255
256
257
258
259
260
263
264
265
266
267
268
269
272
273
274
275
276
277
278
281
282
283
284
285
286
287
288
289
290
293
294
295
296
297
298
299
300
301
304
305
306
307
308
309
310
311
312
315
316
317
318
319
320
321
322
325
326
327
328
329
330
331
332
335
336
337
338
339
340
341
342
343
346
347
348
349
350
351
352
353
354
355
358
359
360
361
362
363
364
365
366
369
370
371
372
373
374
375
376
379
380
381
382
383
384
385
388
389
390#ifndef QT_NO_DATASTREAM
392
393
394
395
396
397
398
399
401QDataStream &operator<<(QDataStream &s,
const QMargins &m)
403 s << m.left() << m.top() << m.right() << m.bottom();
408
409
410
411
412
413
414
415
419 int left, top, right, bottom;
428#ifndef QT_NO_DEBUG_STREAM
431 QDebugStateSaver saver(dbg);
433 dbg <<
"QMargins" <<
'(';
434 QtDebugUtils::formatQMargins(dbg, m);
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
462
463
466
467
468
469
470
471
474
475
476
477
478
479
480
483
484
485
486
487
488
491
492
493
494
495
496
497
501
502
503
504
505
506
509
510
511
512
513
514
517
518
519
520
523
524
525
526
530
531
532
533
536
537
538
539
542
543
544
545
548
549
550
551
554
555
556
557
558
559
560
561
562
563
566
567
568
569
570
571
572
573
574
575
578
579
580
581
582
583
584
585
588
589
590
591
592
593
594
595
598
599
600
601
602
603
604
605
608
609
610
611
612
613
614
615
618
619
620
621
622
623
624
625
628
629
630
631
632
633
634
635
636
639
640
641
642
643
644
645
646
647
650
651
652
653
654
655
656
657
658
659
660
663
664
665
666
667
668
669
670
671
672
673
676
677
678
679
680
683
684
685
686
687
690
691
692
693
694
695
696
699
700
701
702
703
704
705
708
709
710
711
712
713
714
715
718
719
720
721
722
723
724
725
728
729
730
731
732
733
734
737
738
739
740
741
742
743
744
745
748
749
750
751
752
753
754
755
756
759
760
761
762
763
764
767
768
769
770
771
772
775
776
777#ifndef QT_NO_DATASTREAM
779
780
781
782
783
784
785
786
788QDataStream &operator<<(QDataStream &s,
const QMarginsF &m)
790 s <<
double(m.left()) <<
double(m.top()) <<
double(m.right()) <<
double(m.bottom());
795
796
797
798
799
800
801
802
806 double left, top, right, bottom;
811 m =
QMarginsF(qreal(left), qreal(top), qreal(right), qreal(bottom));
816#ifndef QT_NO_DEBUG_STREAM
819 QDebugStateSaver saver(dbg);
821 dbg <<
"QMarginsF" <<
'(';
822 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)