11#include <private/qpaintengineex_p.h>
12#include <qvarlengtharray.h>
14#include <private/qhexstring_p.h>
21class PainterStateGuard {
22 Q_DISABLE_COPY_MOVE(PainterStateGuard)
24 explicit PainterStateGuard(QPainter *p) : m_painter(p) {}
27 for ( ; m_level > 0; --m_level)
50
51
52
53
54
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
94 qWarning(
"qDrawShadeLine: Invalid parameters");
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
221 if (
w == 0 ||
h == 0)
224 qWarning(
"qDrawShadeRect: Invalid parameters");
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
337 if (
w == 0 ||
h == 0)
340 qWarning(
"qDrawShadePanel: Invalid parameters");
417
418
419
420
421
422
423
424
425
426
427
428
429
432 int x,
int y,
int w,
int h,
462 if (
w > 4 &&
h > 4) {
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
582 if (
w == 0 ||
h == 0)
585 qWarning(
"qDrawPlainRect: Invalid parameters");
618
619
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
826
827
828
829
830
831
832
833
834
835
836
837
840
841
842
845
846
847
850
851
852
853
854
855
856
857
858
859
860
865
866
867
868
869
870
871
872
873
874
875
876
877
969 for (
int i = 2;
i <
rows - 1; ++
i)
1077 for (
int i = 1;
i <
rows - 1; ++
i) {
1093 for (
int i = 1;
i <
rows - 1; ++
i) {
1115 for (
int j = 1;
j <
rows - 1; ++
j) {
void qDrawShadeRect(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill)
void qDrawShadeLine(QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth)
void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill)
static void qDrawWinShades(QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints)
QVarLengthArray< QPainter::PixmapFragment, 16 > QPixmapFragmentsArray
void qDrawWinPanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
void qDrawWinButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)