45 #if !defined(QT_NO_STYLE_WINDOWSMOBILE) || defined(QT_PLUGIN) 228 " ................ ",
229 " ................ ",
230 "..................",
231 "..................",
232 "..................",
233 "..................",
234 "..................",
235 "..................",
236 " ................ ",
237 " ................ ",
386 " ....++++++++.... ",
387 " ....++++++++++++.... ",
410 " ....++++++++++++.... ",
411 " ....++++++++.... ",
446 " ++++++++++++++++++++++++ ",
447 " ++++++++++++++++++++++++ ",
448 " ++....................++ ",
449 " ++....................++ ",
450 " ++..@@@..........@@@..++ ",
451 " ++..@@@@........@@@@..++ ",
452 " ++..@@@@@......@@@@@..++ ",
453 " ++...@@@@@....@@@@@...++ ",
454 " ++....@@@@@..@@@@@....++ ",
455 " ++.....@@@@@@@@@@.....++ ",
456 " ++......@@@@@@@@......++ ",
457 " ++.......@@@@@@.......++ ",
458 " ++.......@@@@@@.......++ ",
459 " ++......@@@@@@@@......++ ",
460 " ++.....@@@@@@@@@@.....++ ",
461 " ++....@@@@@..@@@@@....++ ",
462 " ++...@@@@@....@@@@@...++ ",
463 " ++..@@@@@......@@@@@..++ ",
464 " ++..@@@@........@@@@..++ ",
465 " ++..@@@..........@@@..++ ",
466 " ++....................++ ",
467 " ++....................++ ",
468 " ++++++++++++++++++++++++ ",
469 " ++++++++++++++++++++++++ ",
504 " ++++++++++++++++++++++++ ",
505 " ++++++++++++++++++++++++ ",
506 " ++....................++ ",
507 " ++....................++ ",
508 " ++....................++ ",
509 " ++....................++ ",
510 " ++..@@@@@@@@@@@@@@@@..++ ",
511 " ++..@@@@@@@@@@@@@@@@..++ ",
512 " ++..@@@@@@@@@@@@@@@@..++ ",
513 " ++..@@@@@@@@@@@@@@@@..++ ",
514 " ++..@@............@@..++ ",
515 " ++..@@............@@..++ ",
516 " ++..@@............@@..++ ",
517 " ++..@@............@@..++ ",
518 " ++..@@............@@..++ ",
519 " ++..@@............@@..++ ",
520 " ++..@@@@@@@@@@@@@@@@..++ ",
521 " ++..@@@@@@@@@@@@@@@@..++ ",
522 " ++....................++ ",
523 " ++....................++ ",
524 " ++....................++ ",
525 " ++....................++ ",
526 " ++++++++++++++++++++++++ ",
527 " ++++++++++++++++++++++++ ",
562 " ++++++++++++++++++++++++ ",
563 " ++++++++++++++++++++++++ ",
564 " ++....................++ ",
565 " ++....................++ ",
566 " ++..@@@@@@@@@@@@@@@@..++ ",
567 " ++..@@@@@@@@@@@@@@@@..++ ",
568 " ++..@@............@@..++ ",
569 " ++..@@............@@..++ ",
570 " ++..@@............@@..++ ",
571 " ++..@@............@@..++ ",
572 " ++..@@............@@..++ ",
573 " ++..@@............@@..++ ",
574 " ++..@@............@@..++ ",
575 " ++..@@............@@..++ ",
576 " ++..@@............@@..++ ",
577 " ++..@@............@@..++ ",
578 " ++..@@............@@..++ ",
579 " ++..@@............@@..++ ",
580 " ++..@@@@@@@@@@@@@@@@..++ ",
581 " ++..@@@@@@@@@@@@@@@@..++ ",
582 " ++....................++ ",
583 " ++....................++ ",
584 " ++++++++++++++++++++++++ ",
585 " ++++++++++++++++++++++++ ",
621 " ++++++++++++++++++++++++ ",
622 " ++++++++++++++++++++++++ ",
623 " ++....................++ ",
624 " ++....................++ ",
625 " ++....................++ ",
626 " ++....................++ ",
627 " ++....................++ ",
628 " ++....................++ ",
629 " ++....................++ ",
630 " ++....................++ ",
631 " ++....................++ ",
632 " ++....................++ ",
633 " ++....................++ ",
634 " ++....................++ ",
635 " ++....................++ ",
636 " ++....................++ ",
637 " ++..@@@@@@@@@@@@@@@@..++ ",
638 " ++..@@@@@@@@@@@@@@@@..++ ",
639 " ++....................++ ",
640 " ++....................++ ",
641 " ++....................++ ",
642 " ++....................++ ",
643 " ++++++++++++++++++++++++ ",
644 " ++++++++++++++++++++++++ ",
672 static char * sbhandleup_xpm[] = {
719 "..........................",
720 "+@#$%%&&&**===---;;;;>=,'+",
721 "+@#$%%&&&**===---;;;;>=$'+",
722 ")$!!~~%%&&&**===---;;;;>;'",
723 "#{$]],,$${{{!!~~%%%&&&*-;]",
724 "#{$]],,$${{{!!~~%%%&&&*-;]",
725 ",$^//]],,$${{{!!~~%%%&&*;*",
726 ",,(^^//]],$${!!!!!~~%%%&-*",
727 ",,(^^//]],$${!!!!!~~%%%&-*",
728 "]]_((^^//]$!%%~!{{!!~~%%-*",
729 "//#__((^^]{:<<:~!{{{!!~~=*",
730 "//#__((^^]{:<<:~!{{{!!~~=&",
731 "//###__(/$:<<<<:~{${{!!~*&",
732 "^^[[##_^]:<<<<<<}!{$${{!*%",
733 "^^[[##_^]:<<<<<<}!{$${{!*%",
734 "((|[[#_/:<<<<<<<<}!$$${{&~",
735 "((||[#^1<<<<1:<<<<}!$$$$&~",
736 "((||[#^1<<<<1:<<<<}!$$$$&~",
737 "__2|#(1<<<<}],}<<<<}{$,$%~",
738 "##2|_1<<<<}^((]3<<<<}{$,~!",
739 "##2|_1<<<<}^((]3<<<<}{$,~!",
740 "##2#1<<<<3^###(/4<<<<}{,~{",
741 "##2#1<<<<3^###(/4<<<<}{,~!",
742 "[[2_5<<<4(#|[[#_/6<<<<,,!{",
743 "[|2_5<<4_[||||[[_/7<<<,]{$",
744 "[|2_5<<4_[||||[[_/7<<<,]{$",
745 "||8_5<6#|2222|||[_/9<<,]{$",
746 "228#06[28888222||[_/'<,/$,",
747 "228#06[28888222||[_/'<,/$,",
748 "22a|6[8bbbb88822||[(/c](,]",
749 "881b8baaabbbb88222|[(^(_,]",
750 "881b8baaabbbb88222|[(^(_,]",
751 "88111111aaabbb88822|[###]/",
752 "bb:::11111aaabbb8822||[[/^",
753 "bb:::11111aaabbb8822||[[//",
754 "bb:::::1111aaabbb8822||[/(",
755 "3a1::::::1111aaabb8822|_^8",
756 "da1::::::1111aaabb8822|_^8",
757 "e1aaabbbb888822||[[##__((@",
758 "+e4:aaabbbb88822||[[[#[b@+",
759 "+e4:aaabbbb88822||[[[#[bf+"};
761 static char * sbhandledown_xpm[] = {
809 ".+@#$$$%%%%&&&**==---;-%>.",
810 ".+@#$$$%%%%&&&**==---;-%,.",
811 "')$$$%%%%&&&&**==--;;!!~~>",
812 "{$)######))))$$$%%&&**=!]&",
813 "^$)######))))$$$%%&&**=!]&",
814 "%%#####))))$$$%%%&&**==-/(",
815 "%%###)))))$$$%%%&&**==--/]",
816 "%%###)))))$$$%%%&&**==--//",
817 "&&))))))$$$%%%&&&**=-;;;_/",
818 "&&)%&%$$$%%%%&&***=-~]~!:_",
819 "&&)%&%$$$%%%%&&***=-~]~!:_",
820 "**$=<-&%%%%&&&**==-~/[_~:_",
821 "**&;}<-*&&&&***==-!/|1:/2:",
822 "**&;}<-*&&&&***==-!/|1:/2:",
823 "==&!31<;=****===-!/411:_5:",
824 "-=*!311@!-====--!/6111:_52",
825 "-=*!311@!-====--!/6111:_52",
826 "--*!3111@~;=--;!/<1111::75",
827 ";;*;)1111{];;;~/@111185:95",
828 ";;*;)1111{];;;~/@111185:97",
829 ";;*=!)11118]~~_{1111852:97",
830 ";;*=!)11118]~~_{1111852:97",
831 "!!*=;~)11118_:81111852:207",
832 "~~==-;])1111)#1111872222a9",
833 "~~==-;])1111)#1111872222a9",
834 "~~=--;!/#111111118722255a0",
835 "]]--;;!]_#11111187522557b0",
836 "]]--;;!]_#11111187522557b0",
837 "//;;;!!~/2#1111#95255779ba",
838 "//;!!~~]]_5#11#975557799cb",
839 "//;!!~~]]_5#11#975557799ca",
840 "__!~~]]//_27009755779900db",
841 "::~]]//__:2257777799000adb",
842 "::~]]//__:2257777799000adb",
843 ":2]//__::225557799000aabeb",
844 ";52__::225557799000aaabde_",
845 ";52__::225557799000aaabde_",
846 "[2779900aaabbcccdddeeeefeg",
847 ".>;200aaabbcccdddeeeefc:|.",
848 ".>;200aaabbcccdddeeeefc2|."};
850 static char * sbgripdown_xpm[] = {
891 "..+++@@@###...$$%&&**==-;>",
892 "$.++@@@@##...$$%%&**==-->>",
893 "$$+@@@@###..$$%%&&*==--,>>",
894 "$$@@@@###..$$%%&&**==-,,>'",
895 "%%@@@###..$$$%&&**==--,,''",
896 "%%@@###..$$$%&&**==--,,)''",
897 "%%@###...$$%%&&*==--,,))'!",
898 "&&###...$$%%&&**==--,)))!!",
899 "&&##...$$%%&&**==--,,))~!!",
900 "&&#...$$%%&&**==--,,))~~!{",
901 "**...$$%%&&**==--,,))~~;!{",
902 "**..$$%%&&**===--,)))~~;{{",
903 "**.$$%%&]^&===//,,))~~;;{{",
904 "==$$%%&&]^*==-((,))~~;;>{_",
905 "==$%%&&***::--,,::~~;;;>__",
906 "==%%&&&**=::-,,)::~~;;>>__",
907 "--%&&&**==--,,)))~~;;>>>__",
908 "--&&&**==--,,)))~~;;>>>'_<",
909 ",-&&**==]^-,))[[~;;>>>''<<",
910 ",,&**==-]^-)))}};;>>>'''<<",
911 ",,**==--,,::)~~;::>>'''!<<",
912 "))*==--,,)::~~;;::>'''!!<|",
913 "))==--,,)))~~;;;>>'''!!!||",
914 "))=--,,)))~~;;;>>'''!!!{||",
915 "~~--,,)))~~;;;>>'''!!!{{||",
916 "~~-,,)))~~;;>>>'''!!!{{{|1",
917 ";;,,)))~~;;>>>'''!!!{{{_1<",
918 "~;,)))~~;;>>>'''!!!{{{__1'",
919 "%>~))~~;;>>>'''!!!{{{__|1$",
920 "2>>~~~;;>>>''!!!{{{{__<113",
921 "4%'';;;>>>''!!!{{{{__<11%4",
922 "45-!!'>>>''!!!{{{{_<|11)64",
923 "447+!{{___<<<||||1111|+444",
924 "444489~__<<<||||111>$04444"};
926 static char * sbgripup_xpm[] = {
966 "....+@#$$%%%%&&&***$=-....",
967 "...;$$$$$%%%&&&&**>>>>@...",
968 ".,'$$)#'#####)))$$$%*!!$~.",
969 ".=$)#'''####))))$$$%%*!{'.",
970 "]$$''''#####)))$$$%%%&*{^/",
971 "=$#'''#####)))$$$$%%&&&!^#",
972 "$$'''#####))))$$$%%%&&*>(!",
973 "$$''#####))))$$$%%%&&&*>(^",
974 "$$######))))$$$$%%&&&**>(_",
975 "%$#####))))$$$$%%%&&***>__",
976 "%$####))))$$$$%%%&&&**>>__",
977 "%%###)))))$$$%%%&&&**>>>_:",
978 "%%##))))<])$$%[[&&***>>!::",
979 "%%#)))))<]$$%%}<&&**>>!!:|",
980 "&%)))))$$$11%%&&11*>>>!!:|",
981 "&&))))$$$$11%&&&11*>>!!{||",
982 "&&)))$$$$$%%%&&&**>>!!!{|2",
983 "&&))$$$$$%%%&&&**>>>!!{{|2",
984 "*&)$$$$$3]%&&&4@*>>!!{{{22",
985 "**$$$$$%3]%&&&<<>>!!!{{^25",
986 "**$$$$%%%%11&**>11!!{{^^25",
987 "**$$$%%%%&11***>11!!{{^^55",
988 "**$$%%%%&&&***>>!!!{{^^(55",
989 ">>$%%%%&&&***>>>!!{{^^((56",
990 ">>%%%%&&&&***>>!!!{{^^((66",
991 ">>%%%&&&&***>>!!!{{^^((_67",
992 "!>%%&&&&***>>>!!{{{^^(__67",
993 "!!%&&&&***>>>!!!{{^^((_:77",
994 "!!&&&&***>>>!!!{{^^((__:77",
995 "!!&&&****>>!!!{{^^^(__::78",
996 "{!&&****>>>!!{{{^^((_::|88",
997 "{{&****>>>!!!{{^^((__:||88",
998 "{{****>>>!!!{{^^^(__::|289",
999 "{{***>>>!!!{{{^^((_::||289"};
1001 static char * sbgripmiddle_xpm[] = {
1015 "..++@@@###$$$..%%&&*==--;;",
1016 "..++@@@###$$$..%%&&*==--;;"};
1019 static char * listviewhighmiddle_xpm[] = {
1263 "=+-+;+-+-+>+-+-+"};
1267 static char * listviewhighcornerleft_xpm[] = {
2744 ". . + @ # $ $ $ $ $ $ $ % $ $ $ $ $ % $ $ $ $ $ $ % $ $ $ $ $ % $ $ $ $ $ $ $ $ $ % $ $ & * = - ; > , , ' ) ! ! ~ { ] ^ / ( _ : < [ } | | 1 2 3 3 4 4 4 4 4 4 4 5 6 4 4 4 5 6 7 8 9 4 5 6 7 8 9 6 7 8 9 ",
2745 "0 a b % $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ c d d d d $ $ $ $ $ c d e f g h i i i i j k l m n o p q r s t u v w x y z 4 A B C D 9 9 E 9 E F G H I F J K L L L L J K L L L L L L L L ",
2746 "@ % M N O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O P Q R S T U V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.,.'.).!.~.{.].^./.(._.:.<.[.}.|.1.2.3.4.5.6.7.8.9.0.a.b.b.b.b.b.b.",
2747 "c.$ d.O e.f.g.g.g.h.g.g.g.g.g.h.h.g.g.g.g.g.h.h.g.g.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++@+#+$+@+$+%+&+*+=+$+-+;+>+,+'+)+!+;+>+,+~+,+>+,+~+,+",
2748 "$ {+N N f.f.f.f.h.h.h.g.f.f.h.h.h.h.g.f.f.h.h.h.h.]+^+/+(+h._+:+<+[+}+|+1+2+3+4+5+6+7+8+9+0+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z+A+B+.+C+D+E+D+F+G+H+C+I+F+G+J+K+L+H+F+G+J+K+L+H+J+H+J+H+",
2749 "{+{+N N M+M+h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.N+N+h.h.(+O+P+P+Q+R+S+T+U+V+W+X+Y+Z+`+ @.@+@@@#@$@%@&@*@=@-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@<@[@[@y+}@|@1@A+1@2@3@ +2@4@2@5@C+D+6@D+7@5@C+D+6@I+C+D+6@I+",
2750 "{+{+8@N M+M+h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.h.9@9@0@N+a@b@c@d@e@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@z@A@B@q+r+C@D@E@F@G@H@_@I@J@K@<@L@M@N@O@P@Q@R@S@T@A+A+U@V@W@W@A+2@U@V@W@W@U@V@W@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r)s)r)s)r)s)r)s)r)s)r)s)r)t)u)v)w)x)x)w)y)z)A)A)B)B)B)B)w)w)C)C)w)w)B)B)B)B)B)w)w)w)w)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)B)D)B)B)B)B)B)D)B)B)B)D)B)",
2787 ". + + 9)9)9)q)E)q)E)q)E)q)E)q)q)E)q)E)q)E)q)q)E)q)E)q)E)q)E)q)E)q)E)q)E)q)F)G)H)E)I)J)K)H)L)L)L)L)L)L)L)H)H)M)M)H)H)L)L)G)L)L)H)H)H)H)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)N)L)L)L)L)L)N)L)L)L)N)L)",
2788 ". . 0 . + O)P)O)P)O)P)O)P)O)P)P)O)P)O)P)O)P)P)O)P)O)P)O)P)O)P)O)P)O)P)O)P)O)Q)R)S)T)U)V)W)X)W)W)V)V)V)V)V)V)V)V)Y)Y)Z)Z)Y)Z)Z)Y)Y)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)Y)V)V)V)V)V)Y)V)V)V)Y)V)",
2789 ". . . 0 0 0 . 0 0 0 + 0 + 0 + 0 + 0 + 0 + 0 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 0 `) !+ + + .! !`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)+!`)`)`)`)`)+!`)`)`)+!`)"};
2792 static char * listviewhighcornerright_xpm[] = {
3574 ". + @ + # $ % & # $ % & # $ % & # $ % & & * = - ; > , ' ) ! ~ { { { { { { { ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ / / / ( / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / _ _ / / : / < [ } | | | 1 1 ",
3575 "2 2 2 2 3 2 4 @ 3 2 4 @ 3 2 4 @ 3 2 4 @ # 5 6 7 8 ; > 9 0 a b c d e f { { { ] ^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*d*d*d*d*d*A.Y A.Y A.Y A.Y Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y } } | | | | 1 1 ",
3619 "e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*} | } | } | } | | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | | | | 1 | | | 1 1 1 "};
3622 static char * tabmiddle_xpm[] = {
3656 "..........................+@.#.#.",
3657 "........................$@%&#.#..",
3658 "......................**$$@@&#.#.",
3659 ".....................=-;>,%+@.#..",
3660 "....................'')!$$@@&#.#.",
3661 "...................~{=)$$@@&#.#..",
3662 "..................]^'/;;(%&#.#...",
3663 "................._]:/*>,%&@.#.#..",
3664 ".................<{[)!$%+@.#.#...",
3665 "................}~{=!$%@@.#......",
3666 "................]^/-|$@@.#.......",
3667 "................]'/*;@@&#........",
3668 "...............<~[)>,%&#.#.......",
3669 "...............]~=)$%+#.#........",
3670 "...............]'/;1@@.#.........",
3671 "...............~{)*,%&#..........",
3672 "...............2/-$$@#...........",
3673 "...............~[*>(@&#..........",
3674 "...............^=)$%+#...........",
3675 "...............{'*>(@.#..........",
3676 "...............^=)$%+#...........",
3677 "...............{'*>(@.#..........",
3678 "...............^=)$%+#...........",
3679 "...............{'*>(@.#..........",
3680 "...............^=)$%+#...........",
3681 "...............{'*>(@.#..........",
3682 "...............^=)$%+#...........",
3683 "...............{'*>@@.#..........",
3684 "...............^=!$%&#...........",
3685 "...............{/*;@@.#..........",
3686 "...............{)!$%&#...........",
3687 "..............]'/;1@@.#..........",
3688 "..............23)>,%&#...........",
3689 "..............~=-$$@@.#..........",
3690 ".............]{/*;@@.#...........",
3691 "............<^[)>,%&#............",
3692 "............]{/!$%@@.#...........",
3693 "..........]^[-!$%@@.#............",
3694 ".........]^3/!>$@@.#.............",
3695 ".......<]^3/!>$@@&#..............",
3696 ".....<]2{[/!>$%@&#.#.............",
3697 "}<<_]2{3/-!>$%@&#.#.............."};
3700 static char * tabselectedbeginn_xpm[] = {
3730 "..........................+@#$#$$",
3731 "........................%%&&@#$#$",
3732 "......................*==%%&&@#$$",
3733 "....................--*;>%,&@#$#$",
3734 "...................')!~={,+@#$#$$",
3735 "...................]-!^=%%&&@#$#$",
3736 "................../'(~;>%&&@#$#$$",
3737 "................._])!*={,&@#$#$$$",
3738 "................_])~*>%&&$#$$$$$$",
3739 "................:<![={&&@#$$$$$$$",
3740 "................:)!^=,+@#$$$$$$$$",
3741 "...............}'(*^%+@#$#$$$$$$$",
3742 "...............:<!*>%&&$#$$$$$$$$",
3743 ".............../)!^{,&@#$$$$$$$$$",
3744 "...............](*^%+@#$$$$$$$$$$",
3745 "...............]!~=%&&$$$$$$$$$$$",
3746 "...............'(*=,+@#$$$$$$$$$$",
3747 "...............<!*>%&&$$$$$$$$$$$",
3748 "...............'-^=,+@#$$$$$$$$$$",
3749 "...............<!*>%&#$$$$$$$$$$$",
3750 "...............'-^=,+@#$$$$$$$$$$",
3751 "...............<!*>%&#$$$$$$$$$$$",
3752 "...............'-^=,+@#$$$$$$$$$$",
3753 "...............<!*>%&#$$$$$$$$$$$",
3754 "...............'-^=,+@#$$$$$$$$$$",
3755 "...............<!*>%&#$$$$$$$$$$$",
3756 "...............'!^=,&@#$$$$$$$$$$",
3757 "...............<~*>%&#$$$$$$$$$$$",
3758 "...............)!^{,&@#$$$$$$$$$$",
3759 "..............])~;%+@#$$$$$$$$$$$",
3760 "..............]-[={&&$#$$$$$$$$$$",
3761 ".............])!^=,&@#$$$$$$$$$$$",
3762 "............:'-*^%+@#$$$$$$$$$$$$",
3763 "............])~*>%&&$#$$$$$$$$$$$",
3764 "...........:'!*={,&@#$$$$$$$$$$$$",
3765 "..........:'-~^=,+@#$$$$$$$$$$$$$",
3766 ".......}]'-~^=%,&@#$$$$$$$$$$$$$$",
3767 ".....}:])-~^=%,+@#$#$$$$$$$$$$$$$",
3768 "}}}:]')-!*^=%,&@#$#$$$$$$$$$$$$$$"};
3771 static char * tabselectedend_xpm[] = {
3806 "..........................+@#$#$#",
3807 "........................%@&*$#$##",
3808 "......................==%%@@*$#$#",
3809 ".....................-;>,'&+@#$##",
3810 "....................))!~%%@@*$#$#",
3811 "...................{]-!%%@@*$#$##",
3812 "..................^/)(>>_&*$#$###",
3813 ".................:^<(=,'&*@#$#$##",
3814 ".................[]}!~%&+@#$#$###",
3815 "................|{]-~%&@@#$######",
3816 "................^/(;1%@@#$#######",
3817 "................^)(=>@@*$########",
3818 "...............[{}!,'&*$#$#######",
3819 "...............^{-!%&+$#$########",
3820 "...............^)(>2@@#$#########",
3821 "...............{]!='&*$##########",
3822 "...............3(;%%@$###########",
3823 "...............{}=,_@*$##########",
3824 ".............../-!%&+$###########",
3825 "...............])=,_@#$##########",
3826 ".............../-!%&+$###########",
3827 "...............])=,_@#$##########",
3828 ".............../-!%&+$###########",
3829 "...............])=,_@#$##########",
3830 ".............../-!%&+$###########",
3831 "...............])=,_@#$##########",
3832 ".............../-!%&+$###########",
3833 "...............])=,@@#$##########",
3834 ".............../-~%&*$###########",
3835 "...............](=>@@#$##########",
3836 "...............]!~%&*$###########",
3837 "..............^)(>2@@#$##########",
3838 "..............34!,'&*$###########",
3839 "..............{-;%%@@#$##########",
3840 ".............^](=>@@#$###########",
3841 "............[/}!,'&*$############",
3842 "............^](~%&@@#$###########",
3843 "..........^/};~%&@@#$############",
3844 ".........^/4(~,%@@#$#############",
3845 ".......[^/4(~,%@@*$##############",
3846 ".....[^3]}(~,%&@*$#$#############",
3847 "|[[:^3]4(;~,%&@*$#$##############"};
3850 static char * tabend_xpm[] = {
3855 "..........................+++++++",
3856 "........................+++++++++",
3857 "......................+++++++++++",
3858 ".....................++++++++++++",
3859 "....................+++++++++++++",
3860 "...................++++++++++++++",
3861 "..................+++++++++++++++",
3862 ".................++++++++++++++++",
3863 ".................++++++++++++++++",
3864 "................+++++++++++++++++",
3865 "................+++++++++++++++++",
3866 "................+++++++++++++++++",
3867 "...............++++++++++++++++++",
3868 "...............++++++++++++++++++",
3869 "...............++++++++++++++++++",
3870 "...............++++++++++++++++++",
3871 "...............++++++++++++++++++",
3872 "...............++++++++++++++++++",
3873 "...............++++++++++++++++++",
3874 "...............++++++++++++++++++",
3875 "...............++++++++++++++++++",
3876 "...............++++++++++++++++++",
3877 "...............++++++++++++++++++",
3878 "...............++++++++++++++++++",
3879 "...............++++++++++++++++++",
3880 "...............++++++++++++++++++",
3881 "...............++++++++++++++++++",
3882 "...............++++++++++++++++++",
3883 "...............++++++++++++++++++",
3884 "...............++++++++++++++++++",
3885 "...............++++++++++++++++++",
3886 "..............+++++++++++++++++++",
3887 "..............+++++++++++++++++++",
3888 "..............+++++++++++++++++++",
3889 ".............++++++++++++++++++++",
3890 "............+++++++++++++++++++++",
3891 "............+++++++++++++++++++++",
3892 "..........+++++++++++++++++++++++",
3893 ".........++++++++++++++++++++++++",
3894 ".......++++++++++++++++++++++++++",
3895 ".....++++++++++++++++++++++++++++",
3896 "+++++++++++++++++++++++++++++++++"};
3907 qreal ca[3] = {0, 0, 0};
3909 if (s == 0 || h == 1) {
3911 ca[0] = ca[1] = ca[2] =
l;
3916 temp2 = l * (
qreal(1.0) + s);
3918 temp2 = l + s - (l * s);
3925 for (
int i = 0; i != 3; ++i) {
3926 if (temp3[i] <
qreal(0.0))
3927 temp3[i] +=
qreal(1.0);
3928 else if (temp3[i] >
qreal(1.0))
3929 temp3[i] -=
qreal(1.0);
3931 const qreal sixtemp3 = temp3[i] *
qreal(6.0);
3933 if (sixtemp3 <
qreal(1.0))
3934 ca[i] = ((temp1 + (temp2 - temp1) * sixtemp3));
3935 else if ((temp3[i] *
qreal(2.0)) <
qreal(1.0))
3937 else if ((temp3[i] *
qreal(3.0)) <
qreal(2.0))
3938 ca[i] = temp1 + (temp2 -temp1) * (
qreal(2.0) /
qreal(3.0) - temp3[i]) *
qreal(6.0);
3946 #define Q_MAX_3(a, b, c) ( ( a > b && a > c) ? a : (b > c ? b : c) ) 3947 #define Q_MIN_3(a, b, c) ( ( a < b && a < c) ? a : (b < c ? b : c) ) 3961 const qreal delta = max - min;
3962 const qreal delta2 = max + min;
3972 if (lightness <
qreal(0.5))
3973 s = ((delta / delta2));
3975 s = ((delta / (
qreal(2.0) - delta2)));
3977 hue = ((g - b) /delta);
3979 hue = (2.0 + (b - r) / delta);
3981 hue = (4.0 + (r - g) / delta);
3983 Q_ASSERT_X(
false,
"QColor::toHsv",
"internal error");
3998 tintColor = toHsl(tintColor);
3999 color = toHsl(color);
4004 saturation = _saturation;
4006 color.
setHsvF(hue, saturation, lightness);
4008 color = fromHsl(color);
4015 for (
int i=2;i< colorTable.
size();i++) {
4017 tintColor(c, color, saturation);
4018 colorTable[i] = c.
rgb();
4028 for (
int x = 0; x < image->
width(); x++)
4029 for (
int y = 0; y < image->
height(); y++) {
4031 tintColor(c, color, saturation);
4036 #endif //Q_WS_WINCE_WM 4041 #ifdef Q_WS_WINCE_WM 4043 void QWindowsMobileStylePrivate::tintImagesButton(
QColor color)
4045 if (currentTintButton == color)
4047 currentTintButton = color;
4049 imageTabEnd =
QImage(tabend_xpm);
4050 imageTabSelectedEnd =
QImage(tabselectedend_xpm);
4051 imageTabSelectedBegin =
QImage(tabselectedbeginn_xpm);
4052 imageTabMiddle =
QImage(tabmiddle_xpm);
4053 tintImage(&imageTabEnd, color, 0.0);
4054 tintImage(&imageTabSelectedEnd, color, 0.0);
4055 tintImage(&imageTabSelectedBegin, color, 0.0);
4056 tintImage(&imageTabMiddle, color, 0.0);
4059 int height = imageTabMiddle.height() / 2 + 1;
4060 imageTabEnd = imageTabEnd.scaledToHeight(height);
4061 imageTabMiddle = imageTabMiddle.scaledToHeight(height);
4062 imageTabSelectedEnd = imageTabSelectedEnd.scaledToHeight(height);
4063 imageTabSelectedBegin = imageTabSelectedBegin.scaledToHeight(height);
4067 void QWindowsMobileStylePrivate::tintImagesHigh(
QColor color)
4069 if (currentTintHigh == color)
4071 currentTintHigh = color;
4072 tintListViewHighlight(color);
4073 imageScrollbarHandleUpHigh = imageScrollbarHandleUp;
4074 imageScrollbarHandleDownHigh = imageScrollbarHandleDown;
4075 tintImagePal(&imageScrollbarHandleDownHigh, color,
qreal(0.8));
4076 tintImagePal(&imageScrollbarHandleUpHigh, color,
qreal(0.8));
4079 void QWindowsMobileStylePrivate::tintListViewHighlight(
QColor color)
4081 imageListViewHighlightCornerRight =
QImage(listviewhighcornerright_xpm);
4082 tintImage(&imageListViewHighlightCornerRight, color,
qreal(0.0));
4084 imageListViewHighlightCornerLeft =
QImage(listviewhighcornerleft_xpm);
4085 tintImage(&imageListViewHighlightCornerLeft, color,
qreal(0.0));
4087 imageListViewHighlightMiddle =
QImage(listviewhighmiddle_xpm);
4088 tintImage(&imageListViewHighlightMiddle, color,
qreal(0.0));
4090 int height = imageListViewHighlightMiddle.height();
4092 height = height / 2;
4093 imageListViewHighlightCornerRight = imageListViewHighlightCornerRight.scaledToHeight(height);
4094 imageListViewHighlightCornerLeft = imageListViewHighlightCornerLeft.scaledToHeight(height);
4095 imageListViewHighlightMiddle = imageListViewHighlightMiddle.scaledToHeight(height);
4099 #endif //Q_WS_WINCE_WM 4103 #ifdef Q_WS_WINCE_WM 4106 imageScrollbarHandleUp =
QImage(sbhandleup_xpm);
4107 imageScrollbarHandleDown =
QImage(sbhandledown_xpm);
4108 imageScrollbarGripUp =
QImage(sbgripup_xpm);
4109 imageScrollbarGripDown =
QImage(sbgripdown_xpm);
4110 imageScrollbarGripMiddle =
QImage(sbgripmiddle_xpm);
4113 imageScrollbarHandleUp = imageScrollbarHandleUp.scaledToHeight(imageScrollbarHandleUp.height() / 2);
4114 imageScrollbarHandleDown = imageScrollbarHandleDown.scaledToHeight(imageScrollbarHandleDown.height() / 2);
4115 imageScrollbarGripMiddle = imageScrollbarGripMiddle.scaledToHeight(imageScrollbarGripMiddle.height() / 2);
4116 imageScrollbarGripUp = imageScrollbarGripUp.scaledToHeight(imageScrollbarGripUp.height() / 2);
4117 imageScrollbarGripDown = imageScrollbarGripDown.scaledToHeight(imageScrollbarGripDown.height() / 2);
4122 #endif //Q_WS_WINCE_WM 4127 #ifndef QT_NO_TABBAR 4128 #ifdef Q_WS_WINCE_WM 4140 painter->
drawImage(r, imageTabSelectedBegin);
4147 painter->
drawImage(r, imageTabSelectedEnd);
4157 #endif //Q_WS_WINCE_WM 4214 #endif //QT_NO_TABBAR 4219 #ifdef Q_WS_WINCE_WM 4231 painter->
drawImage(r, imageListViewHighlightMiddle);
4240 QImage cornerLeft = imageListViewHighlightCornerLeft;
4241 QImage cornerRight = imageListViewHighlightCornerRight;
4245 if ((width * 2) > r.
width()) {
4246 width = (r.
width() - 5) / 2;
4260 #endif //Q_WS_WINCE_WM 4272 #ifdef Q_WS_WINCE_WM 4278 p->
drawImage(r.
adjusted(10, 0, -10, 0), imageScrollbarGripMiddle.transformed(transform));
4280 p->
drawImage(r.
topRight() -
QPoint(imageScrollbarGripDown.height() - 1, 0), imageScrollbarGripDown.transformed(transform));
4312 fropt.QStyleOption::operator=(*newScrollbar);
4322 if (drawCompleteFrame)
4323 gripMarginFrame = 0;
4327 for (
int i = -3; i < 3; i += 2) {
4330 newScrollbar->
rect.
top() + gripMargin +gripMarginFrame),
4335 for (
int i = -2; i < 4 ; i += 2) {
4337 QPoint(newScrollbar->
rect.
left() + gripMargin + gripMarginFrame ,
4338 newScrollbar->
rect.
center().
y() + 1 + i * doubleLines - 1),
4340 newScrollbar->
rect.
center().
y() + 1 + i * doubleLines - 1));
4352 if (drawCompleteFrame)
4364 #ifdef Q_WS_WINCE_WM 4372 p->
drawImage(r.topLeft(), imageScrollbarHandleUpHigh.transformed(transform));
4374 p->
drawImage(r.topLeft(), imageScrollbarHandleUp.transformed(transform));
4377 p->
drawImage(r.topLeft(), imageScrollbarHandleUpHigh);
4379 p->
drawImage(r.topLeft(), imageScrollbarHandleUp);
4383 #endif //Q_WS_WINCE_WM 4420 #ifndef QT_NO_SCROLLBAR 4421 #ifdef Q_WS_WINCE_WM 4429 p->
drawImage(r.topLeft(), imageScrollbarHandleDownHigh.transformed(transform));
4431 p->
drawImage(r.topLeft(), imageScrollbarHandleDown.transformed(transform));
4434 p->
drawImage(r.topLeft(), imageScrollbarHandleDownHigh);
4436 p->
drawImage(r.topLeft(), imageScrollbarHandleDown);
4440 #endif //Q_WS_WINCE_WM 4458 if (secondScrollBar)
4467 if (secondScrollBar)
4477 #endif //QT_NO_SCROLLBAR 4482 #ifndef QT_NO_SCROLLBAR 4483 #ifdef Q_OS_WINCE_WM 4495 #ifndef QT_NO_IMAGEFORMAT_XPM 4508 #endif //QT_NO_SCROLLBAR 4531 #ifndef QT_NO_IMAGEFORMAT_XPM 4575 bool doRestore =
false;
4580 case PE_PanelButtonTool: {
4587 if (qobject_cast<QTabWidget *>(
parent->parentWidget())) {
4590 #endif //QT_NO_TABBAR 4591 rect.
adjust(0,2*penSize,0,-1*penSize);
4593 if (option->
state & (State_Sunken))
4597 if (!(option->
state & State_AutoRaise) || (option->
state & (State_Sunken | State_On)))
4600 if (option->
state & (State_Sunken)) {
4603 if (option->
state & (State_On)){
4611 case PE_IndicatorButtonDropDown:
4617 #ifndef QT_NO_TABBAR 4618 case PE_IndicatorTabTear:
4619 if (
const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
4621 QRect rect = tab->rect;
4623 rect.
setTop(rect.
top() + ((tab->state & State_Selected) ? 1 : 3));
4624 rect.
setBottom(rect.
bottom() - ((tab->state & State_Selected) ? 0 : 2));
4627 for(
int jags = 1; jags <= count; ++jags, rtl = !rtl)
4630 painter->
setBrush(tab->palette.background());
4635 #endif //QT_NO_TABBAR 4637 #ifndef QT_NO_TOOLBAR 4638 case PE_IndicatorToolBarSeparator: {
4641 if (option->
state & State_Horizontal) {
4660 #endif // QT_NO_TOOLBAR 4661 case PE_IndicatorToolBarHandle:
4664 if (option->
state & State_Horizontal) {
4689 #ifndef QT_NO_PROGRESSBAR 4690 case PE_IndicatorProgressChunk: {
4691 bool vertical =
false;
4703 #endif // QT_NO_PROGRESSBAR 4705 case PE_FrameButtonTool: {
4706 #ifndef QT_NO_DOCKWIDGET 4707 if (widget && widget->
inherits(
"QDockWidgetTitleButton")) {
4708 if (
const QDockWidget *dw = qobject_cast<const QDockWidget *>(widget->
parent()))
4709 if (dw->isFloating()){
4715 #endif // QT_NO_DOCKWIDGET 4718 bool panel = (element == PE_PanelButtonTool);
4719 if ((!(option->
state & State_Sunken ))
4720 && (!(option->
state & State_Enabled)
4721 || ((option->
state & State_Enabled ) && !(option->
state & State_MouseOver)))
4722 && (option->
state & State_On)) {
4729 if (option->
state & (State_Raised | State_Sunken | State_On)) {
4730 if (option->
state & State_AutoRaise) {
4731 if(option->
state & (State_Enabled | State_Sunken | State_On)){
4749 case PE_FrameFocusRect:
4750 if (
const QStyleOptionFocusRect *fropt = qstyleoption_cast<const QStyleOptionFocusRect *>(option)) {
4754 bool alternateFocusStyle =
false;
4756 alternateFocusStyle =
true;
4757 #ifndef QT_NO_COMBOBOX 4758 if (qobject_cast<const QComboBox*>(widget))
4759 alternateFocusStyle =
true;
4761 if (!(fropt->state & State_KeyboardFocusChange) && !
styleHint(SH_UnderlineShortcut, option))
4766 if (alternateFocusStyle) {
4767 QColor bg_col = fropt->backgroundColor;
4771 QColor patternCol((bg_col.
red() ^ 0xff) & 0xff,
4772 (bg_col.
green() ^ 0xff) & 0xff,
4773 (bg_col.
blue() ^ 0xff) & 0xff);
4791 case PE_PanelButtonBevel: {
4793 bool panel = element != PE_FrameButtonBevel;
4795 if (!(option->
state & State_Sunken) && (option->
state & State_On))
4800 if (option->
state & (State_Raised | State_On | State_Sunken)) {
4813 case PE_FrameGroupBox:
4814 if (
const QStyleOptionFrame *frame = qstyleoption_cast<const QStyleOptionFrame *>(option)) {
4819 QRect r = frame->rect;
4820 painter->
setPen(frame->palette.shadow().color());
4823 frame->palette.light());
4832 case PE_IndicatorCheckBox: {
4835 if (option->
state & State_NoChange)
4837 else if (option->
state & State_Sunken)
4839 else if (option->
state & State_Enabled)
4861 if (option->
state & State_HasFocus) {
4879 case PE_IndicatorViewItemCheck:
4880 case PE_Q3CheckListIndicator: {
4885 if (element == PE_Q3CheckListIndicator || element == PE_IndicatorViewItemCheck) {
4887 if (option->
state & State_NoChange)
4896 if (option->
state & State_Enabled)
4900 if (!(option->
state & State_Off)) {
4908 if (option->
state & State_NoChange)
4910 else if (option->
state & State_Enabled)
4914 if (!(option->
state & State_Off)) {
4924 case PE_IndicatorRadioButton: {
4927 if (option->
state & State_HasFocus) {
4936 if (option->
state & (State_Sunken | State_On)) {
4937 if (option->
state & State_Enabled)
4947 case PE_PanelButtonCommand:
4948 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
4953 if ((flags & State_Sunken || flags & State_On) )
4971 }
else if (flags & (State_Raised | State_Sunken | State_On | State_Sunken)) {
4978 case PE_FrameDefaultButton: {
4983 rect.
adjust(1, 1, -2, -2);
4989 rect.
adjust(2, 2, -3, -3);
4994 case PE_IndicatorSpinPlus:
4995 case PE_IndicatorSpinMinus: {
4997 int fw = proxy()->pixelMetric(PM_DefaultFrameWidth, option, widget)+2;
4999 int offset = (option->
state & State_Sunken) ? 1 : 0;
5000 int step = (br.
width() + 4) / 5;
5001 painter->
fillRect(br.
x() + offset, br.
y() + offset +br.
height() / 2 - step / 2,
5003 if (element == PE_IndicatorSpinPlus)
5004 painter->
fillRect(br.
x() + br.
width() / 2 - step / 2 + offset, br.
y() + offset+4,
5007 case PE_IndicatorSpinUp:
5008 case PE_IndicatorSpinDown: {
5012 case PE_IndicatorSpinUp:
5013 points[0] =
QPoint(-2, -4);
5014 points[1] =
QPoint(-2, 2);
5015 points[2] =
QPoint(-1, -3);
5016 points[3] =
QPoint(-1, 1);
5017 points[4] =
QPoint(0, -2);
5018 points[5] =
QPoint(0, 0);
5019 points[6] =
QPoint(1, -1);
5021 case PE_IndicatorSpinDown:
5022 points[0] =
QPoint(0, -4);
5023 points[1] =
QPoint(0, 2);
5024 points[2] =
QPoint(-1, -3);
5025 points[3] =
QPoint(-1, 1);
5026 points[4] =
QPoint(-2, -2);
5027 points[5] =
QPoint(-2, 0);
5028 points[6] =
QPoint(-3, -1);
5033 if (option->
state & State_Sunken)
5034 painter->
translate(proxy()->pixelMetric(PM_ButtonShiftHorizontal),
5035 proxy()->pixelMetric(PM_ButtonShiftVertical));
5036 if (option->
state & State_Enabled) {
5040 painter->
drawLine(points[0], points[1]);
5041 painter->
drawLine(points[2], points[3]);
5042 painter->
drawLine(points[4], points[5]);
5048 painter->
drawLine(points[0], points[1]);
5049 painter->
drawLine(points[2], points[3]);
5050 painter->
drawLine(points[4], points[5]);
5054 painter->
drawLine(points[0], points[1]);
5055 painter->
drawLine(points[2], points[3]);
5056 painter->
drawLine(points[4], points[5]);
5067 case PE_IndicatorArrowUp:
5068 case PE_IndicatorArrowDown:
5069 case PE_IndicatorArrowRight:
5070 case PE_IndicatorArrowLeft: {
5075 if (option->
state & State_Sunken)
5080 int xoffset, yoffset;
5081 bool isTabBarArrow = widget && widget->
parent()
5086 case PE_IndicatorArrowUp:
5091 case PE_IndicatorArrowDown:
5096 case PE_IndicatorArrowLeft:
5099 yoffset = isTabBarArrow ? 12 : 2;
5101 case PE_IndicatorArrowRight:
5104 yoffset = isTabBarArrow ? 12 : 2;
5135 case PE_IndicatorArrowUp:
5137 points[0] =
QPoint(-3, 1);
5138 points[1] =
QPoint(3, 1);
5139 points[2] =
QPoint(-2, 0);
5140 points[3] =
QPoint(2, 0);
5141 points[4] =
QPoint(-1, -1);
5142 points[5] =
QPoint(1, -1);
5143 points[6] =
QPoint(0, -2);
5145 case PE_IndicatorArrowDown:
5147 points[0] =
QPoint(-3, -1);
5148 points[1] =
QPoint(3, -1);
5149 points[2] =
QPoint(-2, 0);
5150 points[3] =
QPoint(2, 0);
5151 points[4] =
QPoint(-1, 1);
5152 points[5] =
QPoint(1, 1);
5153 points[6] =
QPoint(0, 2);
5155 case PE_IndicatorArrowRight:
5157 points[0] =
QPoint(-2, -3);
5158 points[1] =
QPoint(-2, 3);
5159 points[2] =
QPoint(-1, -2);
5160 points[3] =
QPoint(-1, 2);
5161 points[4] =
QPoint(0, -1);
5162 points[5] =
QPoint(0, 1);
5163 points[6] =
QPoint(1, 0);
5165 case PE_IndicatorArrowLeft:
5167 points[0] =
QPoint(0, -3);
5168 points[1] =
QPoint(0, 3);
5169 points[2] =
QPoint(-1, -2);
5170 points[3] =
QPoint(-1, 2);
5171 points[4] =
QPoint(-2, -1);
5172 points[5] =
QPoint(-2, 1);
5173 points[6] =
QPoint(-3, 0);
5178 if (option->
state & State_Sunken)
5182 if (option->
state & State_Enabled) {
5185 painter->
drawLine(points[0], points[1]);
5186 painter->
drawLine(points[2], points[3]);
5187 painter->
drawLine(points[4], points[5]);
5193 painter->
drawLine(points[0], points[1]);
5194 painter->
drawLine(points[2], points[3]);
5195 painter->
drawLine(points[4], points[5]);
5201 #ifndef QT_NO_TABWIDGET 5202 case PE_FrameTabWidget:
5216 switch (tab->shape) {
5218 #ifdef Q_WS_WINCE_WM 5229 #ifdef Q_WS_WINCE_WM 5240 #ifdef Q_WS_WINCE_WM 5246 #ifdef Q_WS_WINCE_WM 5266 #endif //QT_NO_TABBAR 5267 #ifndef QT_NO_ITEMVIEWS 5268 case PE_PanelItemViewRow:
5283 case PE_PanelItemViewItem:
5293 if (vopt->backgroundBrush.style() !=
Qt::NoBrush) {
5296 painter->
fillRect(vopt->rect, vopt->backgroundBrush);
5307 #endif //QT_NO_ITEMVIEWS 5309 case PE_FrameWindow: {
5318 case PE_FrameTabBarBase: {
5322 case PE_IndicatorMenuCheckMark: {
5328 int posX = option->
rect.
x() + (option->
rect.
width() - markW)/2 + 1;
5337 for (i = 0; i < markW/2; ++i) {
5338 a <<
QLineF(xx, yy, xx, yy + 2);
5343 for (; i < markH; ++i) {
5344 a <<
QLineF(xx, yy, xx, yy + 2);
5348 if (!(option->
state & State_Enabled) && !(option->
state & State_On)) {
5352 for (pnt = 0; pnt < a.
size(); ++pnt)
5353 a[pnt].translate(offset.
x(), offset.
y());
5355 for (pnt = 0; pnt < a.
size(); ++pnt)
5356 a[pnt].translate(offset.
x(), offset.
y());
5361 case PE_IndicatorBranch: {
5374 if (option->
state & State_Children) {
5375 int delta = decoration_size / 2;
5381 QPen crossPen = oldPen;
5383 painter->
setPen(crossPen);
5384 painter->
drawLine(bef_h + ofsA + ofsD, bef_v + ofsB + ofsD, bef_h + ofsC + ofsD, bef_v + ofsB + ofsD);
5385 if (!(option->
state & State_Open))
5386 painter->
drawLine(bef_h + ofsB + ofsD, bef_v + ofsA + ofsD, bef_h + ofsB + ofsD, bef_v + ofsC + ofsD);
5388 painter->
drawRect(bef_h, bef_v, decoration_size - 1, decoration_size - 1);
5390 painter->
drawRect(bef_h + 1, bef_v + 1, decoration_size - 3, decoration_size - 3);
5394 if (option->
state & State_Item) {
5400 if (option->
state & State_Sibling)
5402 if (option->
state & (State_Open | State_Children | State_Item | State_Sibling))
5409 case PE_FrameLineEdit:
5416 case PE_FrameStatusBar:
5438 case CE_MenuBarEmptyArea:
5442 case CE_PushButtonBevel:
5443 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5444 QRect br = button->rect;
5445 int dbi = proxy()->pixelMetric(PM_ButtonDefaultIndicator, button, widget);
5451 proxy()->drawPrimitive(PE_PanelButtonCommand, &tmpBtn, painter, widget);
5453 int mbi = proxy()->pixelMetric(PM_MenuButtonIndicator, button, widget);
5454 QRect ir = button->rect;
5460 proxy()->drawPrimitive(PE_IndicatorArrowDown, &newButton, painter, widget);
5463 proxy()->drawPrimitive(PE_FrameDefaultButton, option, painter, widget);
5466 case CE_RadioButton:
5468 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5469 bool isRadio = (element == CE_RadioButton);
5471 subopt.
rect = proxy()->subElementRect(isRadio ? SE_RadioButtonIndicator
5472 : SE_CheckBoxIndicator, button, widget);
5473 proxy()->drawPrimitive(isRadio ? PE_IndicatorRadioButton : PE_IndicatorCheckBox,
5474 &subopt, painter, widget);
5475 subopt.
rect = proxy()->subElementRect(isRadio ? SE_RadioButtonContents
5476 : SE_CheckBoxContents, button, widget);
5477 proxy()->drawControl(isRadio ? CE_RadioButtonLabel : CE_CheckBoxLabel, &subopt, painter, widget);
5478 if (button->state & State_HasFocus) {
5480 fropt.QStyleOption::operator=(*button);
5481 fropt.
rect = proxy()->subElementRect(isRadio ? SE_RadioButtonFocusRect
5482 : SE_CheckBoxFocusRect, button, widget);
5483 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
5487 case CE_RadioButtonLabel:
5488 case CE_CheckBoxLabel:
5489 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5491 if (!
styleHint(SH_UnderlineShortcut, button, widget))
5494 QRect textRect = button->rect;
5495 if (!button->icon.isNull()) {
5497 proxy()->drawItemPixmap(painter, button->rect, alignment, pix);
5499 textRect.
setRight(textRect.
right() - button->iconSize.width() - 4);
5501 textRect.
setLeft(textRect.
left() + button->iconSize.width() + 4);
5503 if (!button->text.isEmpty()){
5504 if (button->state & State_Enabled)
5513 #ifndef QT_NO_PROGRESSBAR 5514 case CE_ProgressBarGroove:
5520 #endif //QT_NO_PROGRESSBAR 5521 #ifndef QT_NO_TABBAR 5523 if (
const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
5524 proxy()->drawControl(CE_TabBarTabShape, tab, painter, widget);
5525 proxy()->drawControl(CE_TabBarTabLabel, tab, painter, widget);
5528 case CE_TabBarTabShape:
5529 if (
const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
5539 #endif // QT_NO_TABBAR 5541 #ifndef QT_NO_TOOLBAR 5543 if (
const QStyleOptionToolBar *toolBar = qstyleoption_cast<const QStyleOptionToolBar *>(option)) {
5559 #endif //QT_NO_TOOLBAR 5561 if (
const QStyleOptionHeader *header = qstyleoption_cast<const QStyleOptionHeader *>(option)) {
5564 proxy()->drawControl(CE_HeaderSection, header, painter, widget);
5566 subopt.
rect = proxy()->subElementRect(SE_HeaderLabel, header, widget);
5567 if (header->state & State_Sunken)
5571 proxy()->drawControl(CE_HeaderLabel, &subopt, painter, widget);
5573 subopt.
rect = proxy()->subElementRect(SE_HeaderArrow, option, widget);
5574 proxy()->drawPrimitive(PE_IndicatorHeaderArrow, &subopt, painter, widget);
5580 case CE_HeaderSection:
5581 if (
const QStyleOptionHeader *header = qstyleoption_cast<const QStyleOptionHeader *>(option)) {
5601 && !header->text.isEmpty()))
5603 rect.
adjust(0, 0, penSize, 0);
5605 rect.
adjust(0, 0, 0, penSize);
5607 if (option->
state & State_Sunken) {
5612 rect.
adjust(0, 0, -penSize, -penSize);
5618 rect.
adjust(-penSize, 0, 0, 0);
5620 rect.
adjust(0, -penSize, 0, 0);
5623 rect.
adjust(0,-penSize,0,0);
5625 rect.
adjust(-penSize, 0, 0, 0);
5627 if (option->
state & State_Sunken) {
5631 rect.
adjust(-penSize, 0, 0, 0);
5636 rect = option->
rect;
5637 #ifndef QT_NO_SCROLLAREA 5638 if (
const QAbstractScrollArea *abstractScrollArea = qobject_cast<const QAbstractScrollArea *> (widget) ) {
5639 QRect rectScrollArea = abstractScrollArea->geometry();
5641 if ((rectScrollArea.
right() - rect.
right() ) > 1)
5648 #endif // QT_NO_SCROLLAREA 5651 #ifndef QT_NO_COMBOBOX 5652 case CE_ComboBoxLabel:
5655 if (
const QStyleOptionComboBox *cb = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
5656 QRect editRect = proxy()->subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, widget);
5659 if (!cb->currentIcon.isNull()) {
5662 QPixmap pixmap = cb->currentIcon.pixmap(cb->iconSize, mode);
5663 QRect iconRect(editRect);
5664 iconRect.
setWidth(cb->iconSize.width() + 4);
5665 iconRect = alignedRect(cb->direction,
5667 iconRect.
size(), editRect);
5673 editRect.
translate(-4 - cb->iconSize.width(), 0);
5675 editRect.
translate(cb->iconSize.width() + 4, 0);
5677 if (!cb->currentText.isEmpty() && !cb->editable) {
5678 proxy()->drawItemText(painter, editRect,
5680 cb->palette, cb->state & State_Enabled, cb->currentText);
5685 #endif // QT_NO_COMBOBOX 5686 #ifndef QT_NO_DOCKWIDGET 5687 case CE_DockWidgetTitle:
5693 QRect rect = dwOpt->rect;
5696 if (verticalTitleBar) {
5707 bool floating =
false;
5708 bool active = dwOpt->state & State_Active;
5711 if (dwOpt->movable) {
5715 if (widget && widget->
isWindow()) {
5722 right =
QColor(0xff, 0xff, 0xff);
5726 if (left != right) {
5730 lg.setColorAt(0, left);
5731 lg.setColorAt(1, right);
5739 if (!widget || !widget->
isWindow()) {
5744 if (!dwOpt->title.isEmpty()) {
5746 QFont newFont = oldFont;
5754 QRect titleRect = proxy()->subElementRect(SE_DockWidgetTitleBarText, option, widget);
5755 if (verticalTitleBar) {
5761 proxy()->drawItemText(painter, titleRect,
5763 dwOpt->state & State_Enabled, dwOpt->title,
5767 if (verticalTitleBar)
5771 #endif // QT_NO_DOCKWIDGET 5773 case CE_PushButtonLabel:
5774 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5776 QRect ir = button->rect;
5779 if (!
styleHint(SH_UnderlineShortcut, button, widget))
5782 if (button->state & (State_On | State_Sunken))
5787 if (!button->icon.isNull()) {
5790 if (mode ==
QIcon::Normal && button->state & State_HasFocus)
5793 if (button->state & State_On)
5795 QPixmap pixmap = button->icon.pixmap(button->iconSize, mode, state);
5796 int pixw = pixmap.
width();
5797 int pixh = pixmap.
height();
5801 if (button->text.isEmpty()) {
5803 ir.
y() + ir.
height() / 2 - pixh / 2);
5810 if ((button->state & (State_On | State_Sunken)) && button->direction ==
Qt::RightToLeft)
5811 point.
rx() -= proxy()->pixelMetric(PM_ButtonShiftHorizontal, option, widget) * 2;
5813 painter->
drawPixmap(visualPos(button->direction, button->rect, point), pixmap);
5821 if (!button->text.isEmpty())
5826 if (button->state & State_Enabled)
5827 proxy()->drawItemText(painter, ir, tf, button->palette,
true, button->text, colorRole);
5829 proxy()->drawItemText(painter, ir, tf, button->palette,
true, button->text,
QPalette::Mid);
5846 #ifndef QT_NO_SLIDER 5848 if (
const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
5849 int thickness = proxy()->pixelMetric(PM_SliderControlThickness, slider, widget);
5850 int len = proxy()->pixelMetric(PM_SliderLength, slider, widget);
5851 int ticks = slider->tickPosition;
5852 QRect groove = proxy()->subControlRect(CC_Slider, slider, SC_SliderGroove, widget);
5853 QRect handle = proxy()->subControlRect(CC_Slider, slider, SC_SliderHandle, widget);
5855 if ((slider->subControls & SC_SliderGroove) && groove.
isValid()) {
5856 int mid = thickness / 2;
5862 painter->
setPen(slider->palette.shadow().color());
5871 if (slider->subControls & SC_SliderTickmarks) {
5877 if (slider->subControls & SC_SliderHandle) {
5878 const QColor c0 = slider->palette.shadow().color();
5879 const QColor c1 = slider->palette.
dark().color();
5880 const QColor c3 = slider->palette.midlight().color();
5881 const QColor c4 = slider->palette.
dark().color();
5884 if (slider->state & State_Enabled) {
5890 int x = handle.
x(), y = handle.
y(),
5901 if (slider->state & State_HasFocus) {
5903 fropt.QStyleOption::operator=(*slider);
5904 fropt.
rect = proxy()->subElementRect(SE_SliderFocusRect, slider, widget);
5905 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
5907 if ((tickAbove && tickBelow) || (!tickAbove && !tickBelow)) {
5911 ,slider->palette.shadow().color(),1,&handleBrush);
5914 if (slider->state & State_Sunken)
5915 painter->
fillRect(
QRectF(x1 + 2, y1 + 2, x2 - x1 - 3, y2 - y1 - 3),fill);
5935 d = (wi + 1) / 2 - 1;
5936 polygon.
setPoints(5, x1, y1, x1, y2, x2, y2, x2, y1, x1 + d,y1 - d);
5941 d = (wi + 1) / 2 - 1;
5942 polygon.
setPoints(5, x1, y1, x1, y2, x1 + d,y2 + d, x2, y2, x2, y1);
5945 d = (he + 1) / 2 - 1;
5947 polygon.
setPoints(5, x1, y1, x1 - d, y1 + d, x1,y2, x2, y2, x2, y1);
5951 d = (he + 1) / 2 - 1;
5953 polygon.
setPoints(5, x1, y1, x1, y2, x2,y2, x2 + d, y1 + d, x2, y1);
5962 painter->
drawRect(x1, y1, x2-x1+1, y2-y1+1);
5967 if (slider->state & State_Sunken)
5968 painter->
fillRect(
QRectF(x1, y1, x2 - x1 + 1, y2 - y1 + 1),fill);
5988 if (slider->state & State_Sunken)
5989 painter->
fillRect(
QRectF(x1 + 3, y1 - d + 2, x2 - x1 - 4, y1),fill);
5991 painter->
drawLine(x1, y1, x1 + d, y1 - d);
5993 painter->
drawLine(x2, y1, x2 -d , y1 -d );
5997 if (slider->state & State_Sunken)
6000 painter->
drawLine(x1, y2, x1 + d, y2 + d);
6002 painter->
drawLine(x2, y2, x2 - d, y2 + d);
6006 if (slider->state & State_Sunken)
6007 painter->
fillRect(
QRectF(x1 - d + 2, y1 + 2, x1, y2 - y1 - 3),fill);
6009 painter->
drawLine(x1, y1, x1 - d, y1 + d);
6011 painter->
drawLine(x1, y2, x1 - d, y2 - d);
6015 if (slider->state & State_Sunken)
6016 painter->
fillRect(
QRectF(x2 - d - 4, y1 + 2, x2 - 4, y2 - y1 - 3),fill);
6018 painter->
drawLine(x2, y1, x2 + d, y1 + d);
6021 painter->
drawLine(x2, y2, x2 + d, y2 - d);
6028 #endif //QT_NO_SLIDER 6029 #ifndef QT_NO_SCROLLBAR 6039 if (
const QStyleOptionSlider *scrollbar = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6043 State saveFlags = scrollbar->state;
6045 bool drawCompleteFrame =
true;
6046 bool secondScrollBar =
false;
6051 secondScrollBar = (abstractScrollArea->horizontalScrollBar()->isVisible()
6052 && abstractScrollArea->verticalScrollBar()->isVisible()) ;
6054 #ifndef QT_NO_LISTVIEW 6055 if (
QListView *listView = qobject_cast<QListView *>(
parent->parentWidget()))
6056 drawCompleteFrame =
false;
6059 if (scrollbar->minimum == scrollbar->maximum)
6060 saveFlags |= State_Enabled;
6061 if (scrollbar->subControls & SC_ScrollBarSubLine) {
6062 newScrollbar.
state = saveFlags;
6063 newScrollbar.
rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarSubLine, widget);
6065 if (!(scrollbar->activeSubControls & SC_ScrollBarSubLine))
6066 newScrollbar.
state &= ~(State_Sunken | State_MouseOver);
6070 if (scrollbar->subControls & SC_ScrollBarAddLine) {
6071 newScrollbar.
rect = scrollbar->rect;
6072 newScrollbar.
state = saveFlags;
6073 newScrollbar.
rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarAddLine, widget);
6075 if (!(scrollbar->activeSubControls & SC_ScrollBarAddLine))
6076 newScrollbar.
state &= ~(State_Sunken | State_MouseOver);
6080 if (scrollbar->subControls & SC_ScrollBarSlider) {
6082 newScrollbar.
rect = scrollbar->rect;
6083 newScrollbar.
state = saveFlags;
6084 newScrollbar.
rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarSlider, widget);
6087 if (!(scrollbar->activeSubControls & SC_ScrollBarSlider))
6088 newScrollbar.
state &= ~(State_Sunken | State_MouseOver);
6095 #endif // QT_NO_SCROLLBAR 6098 = qstyleoption_cast<const QStyleOptionToolButton *>(option)) {
6099 QRect button, menuarea;
6101 #ifndef QT_NO_TABWIDGET 6104 isTabWidget = (qobject_cast<QTabWidget *>(
parent->parentWidget()));
6105 #endif //QT_NO_TABWIDGET 6107 button = proxy()->subControlRect(control, toolbutton, SC_ToolButton, widget);
6108 menuarea = proxy()->subControlRect(control, toolbutton, SC_ToolButtonMenu, widget);
6109 State buttonFlags = toolbutton->state;
6110 if (buttonFlags & State_AutoRaise) {
6111 if (!(buttonFlags & State_MouseOver)) {
6112 buttonFlags &= ~State_Raised;
6115 State menuFlags = buttonFlags;
6116 if (toolbutton->activeSubControls & SC_ToolButton)
6117 buttonFlags |= State_Sunken;
6118 if (toolbutton->activeSubControls & SC_ToolButtonMenu)
6119 menuFlags |= State_On;
6121 tool.
palette = toolbutton->palette;
6122 if (toolbutton->subControls & SC_ToolButton) {
6124 tool.
state = buttonFlags;
6125 proxy()->drawPrimitive(PE_PanelButtonTool, &tool, painter, widget);
6127 if (toolbutton->subControls & SC_ToolButtonMenu) {
6128 tool.
rect = menuarea;
6129 tool.
state = buttonFlags & State_Enabled;
6131 toolMenu = *toolbutton;
6132 toolMenu.
state = menuFlags;
6133 if (buttonFlags & State_Sunken)
6134 proxy()->drawPrimitive(PE_PanelButtonTool, &toolMenu, painter, widget);
6138 State flags = State_None;
6139 if (menuFlags & State_Enabled)
6140 flags |= State_Enabled;
6141 if ((menuFlags & State_On) && !(buttonFlags & State_Sunken)) {
6142 flags |= State_Sunken;
6145 arrowOpt.
state = flags;
6146 proxy()->drawPrimitive(PE_IndicatorArrowDown, &arrowOpt, painter, widget);
6148 if (toolbutton->state & State_HasFocus) {
6150 focusRect.QStyleOption::operator=(*toolbutton);
6154 toolbutton, widget), 0);
6155 proxy()->drawPrimitive(PE_FrameFocusRect, &focusRect, painter, widget);
6159 label.
state = toolbutton->state;
6161 label.
state = toolbutton->state & State_Enabled;
6162 int fw = proxy()->pixelMetric(PM_DefaultFrameWidth, option, widget);
6164 proxy()->drawControl(CE_ToolButtonLabel, &label, painter, widget);
6168 #ifndef QT_NO_GROUPBOX 6170 if (
const QStyleOptionGroupBox *groupBox = qstyleoption_cast<const QStyleOptionGroupBox *>(option)) {
6178 QRect textRect = proxy()->subControlRect(CC_GroupBox, &groupBoxFont, SC_GroupBoxLabel, widget);
6179 QRect checkBoxRect = proxy()->subControlRect(CC_GroupBox, option, SC_GroupBoxCheckBox, widget).
adjusted(0,0,0,0);
6182 frame.QStyleOption::operator=(*groupBox);
6183 frame.
features = groupBox->features;
6186 frame.
rect = proxy()->subControlRect(CC_GroupBox, option, SC_GroupBoxFrame, widget);
6188 QRegion region(groupBox->rect);
6189 if (!groupBox->text.isEmpty()) {
6193 finalRect.
adjust(ltr ? -4 : 0, 0, ltr ? 0 : 4, 0);
6194 region -= finalRect;
6196 proxy()->drawPrimitive(PE_FrameGroupBox, &frame, painter, widget);
6200 if (groupBox->subControls & SC_GroupBoxCheckBox) {
6202 box.QStyleOption::operator=(*groupBox);
6203 box.
rect = checkBoxRect;
6204 proxy()->drawPrimitive(PE_IndicatorCheckBox, &box, painter, widget);
6208 QColor textColor = groupBox->textColor;
6210 painter->
setPen(textColor);
6212 painter->
setPen(groupBox->palette.link().color());
6213 painter->
setPen(groupBox->palette.link().color());
6215 int alignment = int(groupBox->textAlignment);
6219 if (groupBox->state & State_Enabled)
6221 groupBox->palette,
true, groupBox->text,
6226 if (groupBox->state & State_HasFocus) {
6228 fropt.QStyleOption::operator=(*groupBox);
6229 fropt.
rect = textRect;
6230 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
6236 #endif //QT_NO_GROUPBOX 6238 #ifndef QT_NO_COMBOBOX 6240 if (
const QStyleOptionComboBox *cmb = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6242 if ((cmb->subControls & SC_ComboBoxFrame) && cmb->frame)
6246 State flags = State_None;
6247 QRect ar = proxy()->subControlRect(CC_ComboBox, cmb, SC_ComboBoxArrow, widget);
6248 if ((option->
state & State_On)) {
6255 if (option->
state & State_Enabled)
6256 flags |= State_Enabled;
6257 if (option->
state & State_On)
6258 flags |= State_Sunken;
6261 arrowOpt.
palette = cmb->palette;
6262 arrowOpt.
state = flags;
6264 if (cmb->subControls & SC_ComboBoxEditField) {
6265 QRect re = proxy()->subControlRect(CC_ComboBox, cmb, SC_ComboBoxEditField, widget);
6266 if (cmb->state & State_HasFocus && !cmb->editable)
6269 if (cmb->state & State_HasFocus) {
6270 painter->
setPen(cmb->palette.highlightedText().color());
6273 painter->
setPen(cmb->palette.text().color());
6276 if (cmb->state & State_HasFocus && !cmb->editable) {
6278 focus.QStyleOption::operator=(*cmb);
6279 focus.
rect = proxy()->subElementRect(SE_ComboBoxFocusRect, cmb, widget);
6280 focus.
state |= State_FocusAtBorder;
6282 if ((option->
state & State_On))
6283 proxy()->drawPrimitive(PE_FrameFocusRect, &focus, painter, widget);
6288 #endif // QT_NO_COMBOBOX 6291 #ifndef QT_NO_SPINBOX 6293 if (
const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6296 int primitiveElement;
6298 if (spinBox->frame && (spinBox->subControls & SC_SpinBoxFrame)) {
6299 QRect r = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxFrame, widget);
6305 if (spinBox->subControls & SC_SpinBoxUp) {
6310 copy.
state &= ~State_Enabled;
6313 if (spinBox->activeSubControls == SC_SpinBoxUp && (spinBox->state & State_Sunken)) {
6314 copy.
state |= State_On;
6315 copy.
state |= State_Sunken;
6317 copy.
state |= State_Raised;
6318 copy.
state &= ~State_Sunken;
6322 copy.
rect = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxUp, widget);
6323 if (copy.
state & (State_Sunken | State_On))
6327 copy.
rect.
adjust(proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0, -pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0);
6328 proxy()->drawPrimitive(
PrimitiveElement(primitiveElement), ©, painter, widget);
6330 if (spinBox->subControls & SC_SpinBoxDown) {
6332 copy.
state = spinBox->state;
6336 copy.
state &= ~State_Enabled;
6339 if (spinBox->activeSubControls == SC_SpinBoxDown && (spinBox->state & State_Sunken)) {
6340 copy.
state |= State_On;
6341 copy.
state |= State_Sunken;
6343 copy.
state |= State_Raised;
6344 copy.
state &= ~State_Sunken;
6348 copy.
rect = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxDown, widget);
6350 if (copy.
state & (State_Sunken | State_On))
6355 if (primitiveElement == PE_IndicatorArrowUp || primitiveElement == PE_IndicatorArrowDown) {
6356 int frameWidth = proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget);
6357 copy.
rect = copy.
rect.
adjusted(frameWidth, frameWidth, -frameWidth, -frameWidth);
6358 proxy()->drawPrimitive(
PrimitiveElement(primitiveElement), ©, painter, widget);
6361 proxy()->drawPrimitive(
PrimitiveElement(primitiveElement), ©, painter, widget);
6363 if (spinBox->frame && (spinBox->subControls & SC_SpinBoxFrame)) {
6364 QRect r = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxEditField, widget);
6369 #endif // QT_NO_SPINBOX 6383 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
6385 int w = newSize.
width(),
6389 defwidth = 2 * proxy()->pixelMetric(PM_ButtonDefaultIndicator, button, widget);
6394 if (w < minwidth + defwidth && button->icon.isNull())
6395 w = minwidth + defwidth;
6396 if (h < minheight + defwidth)
6397 h = minheight + defwidth;
6398 newSize =
QSize(w + 4, h + 4);
6402 #ifndef QT_NO_GROUPBOX 6404 if (
const QGroupBox *grb = static_cast<const QGroupBox *>(widget)) {
6405 newSize = size +
QSize(!grb->isFlat() ? 16 : 0, !grb->isFlat() ? 16 : 0);
6408 #endif // QT_NO_GROUPBOX 6410 case CT_RadioButton:
6413 if (
const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
6414 bool isRadio = (type == CT_RadioButton);
6416 proxy()->subElementRect(isRadio ? SE_RadioButtonIndicator
6417 : SE_CheckBoxIndicator, button, widget));
6418 int h = proxy()->pixelMetric(isRadio ? PM_ExclusiveIndicatorHeight
6419 : PM_IndicatorHeight, button, widget);
6420 int margins = (!button->icon.isNull() && button->text.isEmpty()) ? 0 : 10;
6421 if (d_func()->doubleControls)
6423 newSize += QSize(irect.
right() + margins, 1);
6427 #ifndef QT_NO_COMBOBOX 6429 if (
const QStyleOptionComboBox *comboBox = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6430 int fw = comboBox->frame ? proxy()->pixelMetric(PM_ComboBoxFrameWidth, option, widget) * 2 : 0;
6431 newSize = QSize(newSize.
width() + fw + 9, newSize.
height() + fw);
6435 #ifndef QT_NO_SPINBOX 6437 if (
const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6438 int fw = spinBox->frame ? proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget) * 2 : 0;
6439 newSize = QSize(newSize.
width() + fw-5, newSize.
height() + fw-6);
6443 #ifndef QT_NO_LINEEDIT 6445 newSize += QSize(0,1);
6449 newSize = QSize(newSize.
width() + 1, newSize.
height());
6452 if (d_func()->doubleControls)
6453 newSize = QSize(newSize.
width(), 42);
6455 newSize = QSize(newSize.
width(), 21);
6457 case CT_HeaderSection:
6458 newSize += QSize(4, 2);
6460 #ifndef QT_NO_ITEMVIEWS 6461 #ifdef Q_WS_WINCE_WM 6462 case CT_ItemViewItem:
6469 #endif //Q_WS_WINCE_WM 6470 #endif //QT_NO_ITEMVIEWS 6482 #ifndef QT_NO_TABWIDGET 6483 case SE_TabWidgetTabBar:
6485 rect.
adjust(-2, 0, 2, 0);
6487 rect.
adjust(-2, 0, 2, 0);
6489 #endif //QT_NO_TABWIDGET 6490 case SE_CheckBoxFocusRect:
6493 case SE_RadioButtonFocusRect:
6498 #ifndef QT_NO_SLIDER 6499 case SE_SliderFocusRect:
6500 if (
const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6501 rect = slider->rect;
6504 case SE_PushButtonFocusRect:
6506 rect.
adjust(-1, -1, 0, 0);
6508 #endif // QT_NO_SLIDER 6509 #ifndef QT_NO_ITEMVIEWS 6510 case SE_ItemViewItemFocusRect:
6511 #ifdef Q_WS_WINCE_WM 6516 #endif //QT_NO_ITEMVIEWS 6529 #ifndef QT_NO_SCROLLBAR 6531 if (
const QStyleOptionSlider *scrollbar = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6532 int sliderButtonExtent = proxy()->pixelMetric(PM_ScrollBarExtent, scrollbar, widget);
6533 float stretchFactor = 1.4f;
6534 int sliderButtonExtentDir = int (sliderButtonExtent * stretchFactor);
6536 #ifdef Q_WS_WINCE_WM 6539 sliderButtonExtent = d->imageScrollbarHandleUp.width();
6540 sliderButtonExtentDir = d->imageScrollbarHandleUp.height();
6542 #endif //Q_WS_WINCE_WM 6546 scrollbar->rect.width() : scrollbar->rect.height()) - (sliderButtonExtentDir * 2);
6548 if (scrollbar->maximum != scrollbar->minimum) {
6549 uint range = scrollbar->maximum - scrollbar->minimum;
6550 sliderlen = (
qint64(scrollbar->pageStep) * maxlen) / (range + scrollbar->pageStep);
6552 int slidermin = proxy()->pixelMetric(PM_ScrollBarSliderMin, scrollbar, widget);
6553 if (sliderlen < slidermin || range >
INT_MAX / 2)
6554 sliderlen = slidermin;
6555 if (sliderlen > maxlen)
6560 int sliderstart = sliderButtonExtentDir + sliderPositionFromValue(scrollbar->minimum,
6562 scrollbar->sliderPosition,
6564 scrollbar->upsideDown);
6566 sliderstart -= sliderButtonExtentDir;
6567 sliderlen += 2*sliderButtonExtent;
6569 switch (subControl) {
6570 case SC_ScrollBarSubLine:
6572 int buttonWidth =
qMin(scrollbar->rect.width() / 2, sliderButtonExtentDir );
6573 rect.
setRect(0, 0, buttonWidth, sliderButtonExtent);
6575 int buttonHeight =
qMin(scrollbar->rect.height() / 2, sliderButtonExtentDir);
6576 rect.
setRect(0, 0, sliderButtonExtent, buttonHeight);
6581 case SC_ScrollBarAddLine:
6583 int buttonWidth =
qMin(scrollbar->rect.width()/2, sliderButtonExtentDir);
6584 rect.
setRect(scrollbar->rect.width() - buttonWidth, 0, buttonWidth, sliderButtonExtent);
6586 int buttonHeight =
qMin(scrollbar->rect.height()/2, sliderButtonExtentDir );
6587 rect.
setRect(0, scrollbar->rect.height() - buttonHeight, sliderButtonExtent, buttonHeight);
6592 case SC_ScrollBarSubPage:
6595 rect.
setRect(0, 0, sliderstart, sliderButtonExtent);
6597 rect.
setRect(sliderButtonExtent, 0, sliderstart - sliderButtonExtent, sliderButtonExtent);
6600 rect.
setRect(0, 0, sliderButtonExtent, sliderstart);
6602 rect.
setRect(0, sliderButtonExtent, sliderButtonExtent, sliderstart - sliderButtonExtent);
6604 case SC_ScrollBarAddPage:
6607 rect.
setRect(sliderstart + sliderlen, 0,
6608 maxlen - sliderstart - sliderlen + 2*sliderButtonExtent, sliderButtonExtent);
6610 rect.
setRect(sliderstart + sliderlen, 0,
6611 maxlen - sliderstart - sliderlen + sliderButtonExtent, sliderButtonExtent);
6614 rect.
setRect(0, sliderstart + sliderlen, sliderButtonExtent,
6615 maxlen - sliderstart - sliderlen + 2*sliderButtonExtent);
6617 rect.
setRect(0, sliderstart + sliderlen, sliderButtonExtent,
6618 maxlen - sliderstart - sliderlen + sliderButtonExtent);
6620 case SC_ScrollBarGroove:
6622 rect.
setRect(sliderButtonExtent, 0, scrollbar->rect.width() - sliderButtonExtent * 2,
6623 scrollbar->rect.height());
6625 rect.
setRect(0, sliderButtonExtent, scrollbar->rect.width(),
6626 scrollbar->rect.height() - sliderButtonExtent * 2);
6628 case SC_ScrollBarSlider:
6630 rect.
setRect(sliderstart, 0, sliderlen, sliderButtonExtent);
6632 rect.
setRect(0, sliderstart, sliderButtonExtent, sliderlen);
6637 rect =
visualRect(scrollbar->direction, scrollbar->rect, rect);
6640 #endif // QT_NO_SCROLLBAR 6644 #ifndef QT_NO_TOOLBUTTON 6646 if (
const QStyleOptionToolButton *toolButton = qstyleoption_cast<const QStyleOptionToolButton *>(option)) {
6647 int mbi = proxy()->pixelMetric(PM_MenuButtonIndicator, toolButton, widget);
6648 rect = toolButton->rect;
6649 switch (subControl) {
6651 if ((toolButton->features
6654 rect.
adjust(0, 0, -mbi, 0);
6656 case SC_ToolButtonMenu:
6657 if ((toolButton->features
6665 rect =
visualRect(toolButton->direction, toolButton->rect, rect);
6668 #endif // QT_NO_TOOLBUTTON 6670 #ifndef QT_NO_SLIDER 6672 if (
const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6673 int tickOffset = proxy()->pixelMetric(PM_SliderTickmarkOffset, slider, widget);
6674 int thickness = proxy()->pixelMetric(PM_SliderControlThickness, slider, widget);
6675 switch (subControl) {
6676 case SC_SliderHandle: {
6678 int len = proxy()->pixelMetric(PM_SliderLength, slider, widget);
6680 sliderPos = sliderPositionFromValue(slider->minimum, slider->maximum,
6681 slider->sliderPosition,
6682 (horizontal ? slider->rect.width()
6683 : slider->rect.height()) - len,
6684 slider->upsideDown);
6686 rect.
setRect(slider->rect.x() + sliderPos, slider->rect.y() + tickOffset, len, thickness);
6688 rect.
setRect(slider->rect.x() + tickOffset, slider->rect.y() + sliderPos, thickness, len);
6693 rect =
visualRect(slider->direction, slider->rect, rect);
6696 #endif //QT_NO_SLIDER 6697 #ifndef QT_NO_COMBOBOX 6699 if (
const QStyleOptionComboBox *comboBox = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6700 int x = comboBox->rect.x(),
6701 y = comboBox->rect.y(),
6702 wi = comboBox->rect.width(),
6703 he = comboBox->rect.height();
6707 if (subControl == SC_ComboBoxArrow)
6708 xpos += wi - int((he - 2*bmarg)*0.9) - bmarg;
6710 xpos += wi - (he - 2*bmarg) - bmarg;
6711 switch (subControl) {
6712 case SC_ComboBoxArrow:
6713 rect.
setRect(xpos, y + bmarg, he - 2*bmarg, he - 2*bmarg);
6715 case SC_ComboBoxEditField:
6716 rect.
setRect(x + margin, y + margin, wi - 2 * margin -
int((he - 2*bmarg) * 0.84f), he - 2 * margin);
6718 if (comboBox->editable)
6721 rect.
adjust(4, 2, 0, -2);
6722 }
else if (!comboBox->editable) {
6723 rect.
adjust(2, 1, 0, -1);
6726 case SC_ComboBoxFrame:
6727 rect = comboBox->rect;
6733 #endif //QT_NO_COMBOBOX 6734 #ifndef QT_NO_SPINBOX 6736 if (
const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6738 int fw = spinBox->frame ? proxy()->pixelMetric(PM_SpinBoxFrameWidth, spinBox, widget) : 0;
6747 switch (subControl) {
6749 rect =
QRect(x + proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0 , bs.
width(), bs.
height());
6751 case SC_SpinBoxDown:
6754 case SC_SpinBoxEditField:
6756 rect =
QRect(lx, fw, spinBox->rect.width() - 2*fw - 2, spinBox->rect.height() - 2*fw);
6758 rect =
QRect(lx, fw, rx-2, spinBox->rect.height() - 2*fw);
6761 case SC_SpinBoxFrame:
6762 rect = spinBox->rect;
6766 rect =
visualRect(spinBox->direction, spinBox->rect, rect);
6769 #endif // Qt_NO_SPINBOX 6770 #ifndef QT_NO_GROUPBOX 6772 if (
const QStyleOptionGroupBox *groupBox = qstyleoption_cast<const QStyleOptionGroupBox *>(option)) {
6773 switch (subControl) {
6774 case SC_GroupBoxFrame:
6776 case SC_GroupBoxContents: {
6779 int bottomMargin = 0;
6780 int labelMargin = 2;
6782 QRect frameRect = groupBox->rect;
6783 int verticalAlignment =
styleHint(SH_GroupBox_TextLabelVerticalAlignment, groupBox, widget);
6784 if (groupBox->text.size()) {
6785 topHeight = groupBox->fontMetrics.height();
6787 topMargin = topHeight+5;
6789 topMargin = -topHeight+5;
6791 if (subControl == SC_GroupBoxFrame) {
6792 frameRect.
setTop(topMargin);
6798 if (groupBox->text.size()) {
6799 frameWidth = proxy()->pixelMetric(PM_DefaultFrameWidth, groupBox, widget);
6800 rect = frameRect.
adjusted(frameWidth, frameWidth + topHeight + labelMargin, -frameWidth, -frameWidth);
6803 rect = groupBox->rect;
6807 case SC_GroupBoxCheckBox:
6809 case SC_GroupBoxLabel: {
6811 int h = fontMetrics.
height();
6815 rect = groupBox->rect.
adjusted(margX, margY, -margX, 0);
6816 if (groupBox->text.size())
6820 int indicatorWidth = proxy()->pixelMetric(PM_IndicatorWidth, option, widget);
6821 int indicatorSpace = proxy()->pixelMetric(PM_CheckBoxLabelSpacing, option, widget) - 1;
6823 int checkBoxSize = hasCheckBox ? (indicatorWidth + indicatorSpace) : 0;
6826 QRect totalRect = alignedRect(groupBox->direction, groupBox->textAlignment,
6827 QSize(textWidth + checkBoxSize, h), rect);
6834 if (subControl == SC_GroupBoxCheckBox) {
6835 int indicatorHeight = proxy()->pixelMetric(PM_IndicatorHeight, option, widget);
6836 left = ltr ? totalRect.
left() : (totalRect.right() - indicatorWidth);
6837 int top = totalRect.top() + (fontMetrics.
height() - indicatorHeight) / 2;
6838 totalRect.setRect(left, top, indicatorWidth, indicatorHeight);
6841 left = ltr ? (totalRect.left() + checkBoxSize - 2) : totalRect.
left();
6842 totalRect.setRect(left, totalRect.top(),
6843 totalRect.width() - checkBoxSize, totalRect.height());
6846 if ((subControl== SC_GroupBoxLabel))
6847 totalRect.adjust(-2,0,6,0);
6857 #endif // QT_NO_GROUPBOX 6866 QColor(132, 130, 132),
QColor(198, 195, 198),
Qt::black,
Qt::white,
Qt::white,
QColor(198, 195, 198));
6892 #ifndef QT_NO_TOOLBAR 6893 if (
QToolBar *toolBar = qobject_cast<QToolBar*>(widget)) {
6896 toolBar->setPalette(pal);
6899 #endif //QT_NO_TOOLBAR 6925 case PM_DefaultTopLevelMargin:
6928 case PM_DefaultLayoutSpacing:
6931 case PM_HeaderMargin:
6934 case PM_DefaultChildMargin:
6937 case PM_ToolBarSeparatorExtent:
6940 case PM_DefaultFrameWidth:
6943 case PM_MenuVMargin:
6946 case PM_MenuHMargin:
6949 case PM_MenuButtonIndicator:
6952 case PM_ComboBoxFrameWidth:
6955 case PM_SpinBoxFrameWidth:
6958 case PM_ButtonDefaultIndicator:
6959 case PM_ButtonShiftHorizontal:
6960 case PM_ButtonShiftVertical:
6963 #ifndef QT_NO_TABBAR 6964 case PM_TabBarTabShiftHorizontal:
6967 case PM_TabBarTabShiftVertical:
6971 case PM_MaximumDragDistance:
6974 case PM_TabBarTabVSpace:
6977 case PM_TabBarBaseHeight:
6980 case PM_IndicatorWidth:
6983 case PM_IndicatorHeight:
6986 case PM_ExclusiveIndicatorWidth:
6989 case PM_ExclusiveIndicatorHeight:
6992 #ifndef QT_NO_SLIDER 6993 case PM_SliderLength:
6996 case PM_FocusFrameHMargin:
6999 case PM_SliderThickness:
7002 case PM_TabBarScrollButtonWidth:
7005 case PM_CheckBoxLabelSpacing:
7006 case PM_RadioButtonLabelSpacing:
7012 case PM_SliderControlThickness:
7013 if (
const QStyleOptionSlider *sl = qstyleoption_cast<const QStyleOptionSlider *>(opt)) {
7014 int space = (sl->orientation ==
Qt::Horizontal) ? sl->rect.height() : sl->rect.width();
7015 int ticks = sl->tickPosition;
7027 thick += proxy()->pixelMetric(PM_SliderLength, sl, widget) / 4;
7031 thick += (space * 2) / (n + 2);
7037 #endif // QT_NO_SLIDER 7039 case PM_SmallIconSize:
7042 case PM_ButtonMargin:
7045 case PM_LargeIconSize:
7048 case PM_IconViewIconSize:
7049 ret = proxy()->pixelMetric(PM_LargeIconSize, opt, widget);
7051 case PM_ToolBarIconSize:
7054 case PM_DockWidgetTitleMargin:
7057 #if defined(Q_WS_WIN) 7059 case PM_DockWidgetFrameWidth:
7064 #endif // QT_NO_MENU 7066 case PM_TitleBarHeight:
7069 case PM_ScrollBarSliderMin:
7070 #ifdef Q_WS_WINCE_WM 7081 case PM_ScrollBarExtent: {
7088 #ifdef Q_WS_WINCE_WM 7098 #ifndef QT_NO_SCROLLAREA 7102 if (qobject_cast<QAbstractScrollArea *>(
parent->parentWidget()))
7110 case PM_SplitterWidth:
7114 #if defined(Q_WS_WIN) 7115 case PM_MDIFrameWidth:
7119 case PM_ToolBarExtensionExtent:
7122 case PM_ToolBarItemMargin:
7125 case PM_ToolBarItemSpacing:
7128 case PM_ToolBarHandleExtent:
7131 case PM_ButtonIconSize:
7134 case PM_TextCursorWidth:
7137 case PM_TabBar_ScrollButtonOverlap:
7152 case SH_Menu_MouseTracking:
7153 case SH_ComboBox_ListMouseTracking:
7154 case SH_EtchDisabledText:
7157 case SH_DitherDisabledText:
7160 case SH_ItemView_ShowDecorationSelected:
7163 #ifndef QT_NO_TABWIDGET 7164 case SH_TabWidget_DefaultTabPosition:
7168 case SH_ToolBar_Movable:
7171 case SH_ScrollBar_ContextMenu:
7174 case SH_MenuBar_AltKeyNavigation:
7177 case SH_RequestSoftwareInputPanel:
7178 ret = RSIP_OnMouseClick;
7188 const QWidget *widget)
const {
7192 #ifndef QT_NO_IMAGEFORMAT_XPM 7193 case SP_ToolBarHorizontalExtensionButton: {
7200 case SP_TitleBarMaxButton:
7201 case SP_TitleBarCloseButton:
7202 case SP_TitleBarNormalButton:
7203 case SP_TitleBarMinButton: {
7206 case SP_TitleBarMaxButton:
7209 case SP_TitleBarCloseButton:
7212 case SP_TitleBarNormalButton:
7215 case SP_TitleBarMinButton:
7242 #ifdef Q_WS_WINCE_WM 7245 #endif //Q_WS_WINCE_WM 7248 int imgw = img.
width();
7249 for (
int y = 0; y < imgh; y += 2) {
7250 for (
int x = 0; x < imgw; x += 2) {
7282 #endif // QT_NO_STYLE_WINDOWSMOBILE
static QMessageBox::StandardButton newButton(int button)
void setBackgroundMode(Qt::BGMode mode)
Sets the background mode of the painter to the given mode.
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
void setPointSize(int)
Sets the point size to pointSize.
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const
Reimplemented Function
QPixmap scaledToHeight(int h, Qt::TransformationMode mode=Qt::FastTransformation) const
static Qt::LayoutDirection layoutDirection()
void polish(QApplication *)
Reimplemented Function
void unpolish(QApplication *)
Reimplemented Function
QImage toImage() const
Converts the pixmap to a QImage.
const QBrush & highlight() const
Returns the highlight brush of the current color group.
The QApplication class manages the GUI application's control flow and main settings.
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const
Reimplemented Function
static const int windowsMobileExclusiveIndicatorSize
static const char *const vertlines_xpm[]
void drawPath(const QPainterPath &path)
Draws the given painter path using the current pen for outline and the current brush for filling...
QRect adjusted(int x1, int y1, int x2, int y2) const
Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of ...
void setHeight(int h)
Sets the height of the rectangle to the given height.
const QBrush & base() const
Returns the base brush of the current color group.
QPixmap standardPixmap(StandardPixmap sp, const QStyleOption *option, const QWidget *widget) const
Reimplemented Function
SubControl
This enum describes the available sub controls.
void setColor(int i, QRgb c)
Sets the color at the given index in the color table, to the given to colorValue. ...
static const char *const arrowleft_big_xpm[]
StyleHint
This enum describes the available style hints.
The QStyleHintReturn class provides style hints that return more than basic data types.
void setBottom(int pos)
Sets the bottom edge of the rectangle to the given y coordinate.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
The QFontMetrics class provides font metrics information.
#define QT_END_NAMESPACE
This macro expands to.
const QColor & color() const
Returns the brush color.
int width() const
Returns the width of the pixmap.
static const char *const max_small_xpm[]
QPointer< QWidget > widget
ColorRole
The ColorRole enum defines the different symbolic color roles used in current GUIs.
void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill)
void drawScrollbarGrip(QPainter *p, QStyleOptionSlider *newScrollbar, const QStyleOptionComplex *option, bool drawCompleteFrame)
static const char *const cross_small_xpm[]
const QBrush & dark() const
Returns the dark brush of the current color group.
qreal valueF() const
Returns the value color component of this color.
qreal greenF() const
Returns the green color component of this color.
void setColorTable(const QVector< QRgb > colors)
Sets the color table used to translate color indexes to QRgb values, to the specified colors...
const QBrush & background() const
Returns the current background brush.
static const char *const checkedlight_xpm[]
QStyle::State state
the style flags that are used when drawing the control
static const int windowsMobileitemViewCheckBoxSize
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
int styleHint(StyleHint hint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const
Reimplemented Function
void setCapStyle(Qt::PenCapStyle pcs)
Sets the pen's cap style to the given style.
static QSize globalStrut()
void rotate(qreal a)
Rotates the coordinate system the given angle clockwise.
const QBrush & background() const
Use window() instead.
ComplexControl
This enum describes the available complex controls.
void drawPanelItemViewSelected(QPainter *painter, const QStyleOptionViewItemV4 *option, QRect rect=QRect())
QRect united(const QRect &other) const
Returns the bounding rectangle of this rectangle and the given rectangle.
static const int windowsMobileSliderThickness
void setClipRect(const QRectF &, Qt::ClipOperation op=Qt::ReplaceClip)
Enables clipping, and sets the clip region to the given rectangle using the given clip operation...
static const int PE_IndicatorArrowUpBig
The QPointF class defines a point in the plane using floating point precision.
bool doubleControls() const
void restore()
Restores the current painter state (pops a saved state off the stack).
The QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in ...
State
This enum describes the state for which a pixmap is intended to be used.
PixelMetric
This enum describes the various available pixel metrics.
static QColor fromHsvF(qreal h, qreal s, qreal v, qreal a=1.0)
Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), v (value), and a (alpha-channel, i.
QSize expandedTo(const QSize &) const
Returns a size holding the maximum width and height of this size and the given otherSize.
int left() const
Returns the x-coordinate of the rectangle's left edge.
int width() const
Returns the width of the rectangle.
static const char *const radiochecked_xpm[]
static const char *const highlightedradiobutton_low_xpm[]
long ASN1_INTEGER_get ASN1_INTEGER * a
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const
Reimplemented Function
TabPosition position
the position of the tab in the tab bar
static const char *const radiochecked_low_xpm[]
static const char *const checkedbold_low_xpm[]
The QPolygon class provides a vector of points using integer precision.
static const char *const arrowdown_big_xpm[]
qreal saturationF() const
Returns the saturation color component of this color.
void drawLine(const QLineF &line)
Draws a line defined by line.
ushort red
Returns the red color component of this color.
int height() const
Returns the height of the rectangle.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
QFontMetrics fontMetrics
the font metrics that should be used when drawing text in the control
void setHeight(int h)
Sets the height to the given height.
QImage imageArrowRightBig
static const char *const checkedbold_xpm[]
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
The QPen class defines how a QPainter should draw lines and outlines of shapes.
void setBrushOrigin(int x, int y)
Sets the brush's origin to point (x, y).
QRgb pixel(int x, int y) const
Returns the color of the pixel at coordinates (x, y).
QPixmap standardPixmap(StandardPixmap sp, const QStyleOption *opt=0, const QWidget *widget=0) const
Reimplemented Function
void drawPoint(const QPointF &pt)
Draws a single point at the given position using the current pen's color.
QTabBar::Shape shape
the tab shape used to draw the tab; by default QTabBar::RoundedNorth
void moveTo(const QPointF &p)
Moves the current point to the given point, implicitly starting a new subpath and closing the previou...
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
void save()
Saves the current painter state (pushes the state onto a stack).
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
StandardPixmap
This enum describes the available standard pixmaps.
static const char *const min_small_xpm[]
The QLineF class provides a two-dimensional vector using floating point precision.
static const char *const arrowleft_xpm[]
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=0) const
Reimplemented Function
void setWidth(int w)
Sets the width to the given width.
QColor backgroundColor
the background color on which the focus rectangle is being drawn
void lineTo(const QPointF &p)
Adds a straight line from the current position to the given endPoint.
static const char *const radiobutton_low_xpm[]
void setCurrentColorGroup(ColorGroup cg)
Set the palette's current color group to cg.
bool qt_wince_is_smartphone()
QPalette standardPalette() const
Returns the style's standard palette.
int lineWidth
the line width for drawing the frame
The QStyleOptionProgressBarV2 class is used to describe the parameters necessary for drawing a progre...
void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const
Reimplemented Function
int width() const
Returns the width.
static const int PE_IndicatorArrowDownBig
QRegion clipRegion() const
Returns the currently set clip region.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint...
void setHsvF(qreal h, qreal s, qreal v, qreal a=1.0)
Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha componen...
const QPen & pen() const
Returns the painter's current pen.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
void setBold(bool)
If enable is true sets the font's weight to QFont::Bold ; otherwise sets the weight to QFont::Normal...
QPoint bottomRight() const
Returns the position of the rectangle's bottom-right corner.
QPoint brushOrigin() const
Returns the currently set brush origin.
const QBrush & light() const
Returns the light brush of the current color group.
void drawLines(const QLineF *lines, int lineCount)
Draws the first lineCount lines in the array lines using the current pen.
QSize size(int flags, const QString &str, int tabstops=0, int *tabarray=0) const
Returns the size in pixels of text.
The QStyleOption class stores the parameters used by QStyle functions.
ContentsType
This enum describes the available contents types.
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box...
void setTop(int pos)
Sets the top edge of the rectangle to the given y coordinate.
const QFont & font() const
Returns the currently set font used for drawing text.
static const char *const radiobutton_xpm[]
QSize size() const
Returns the size of the rectangle.
Mode
This enum type describes the mode for which a pixmap is intended to be used.
QColor dark(int f=200) const
Use darker(factor) instead.
void adjust(int x1, int y1, int x2, int y2)
Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.
void setRight(int pos)
Sets the right edge of the rectangle to the given x coordinate.
const QBrush & mid() const
Returns the mid brush of the current color group.
QWindowsMobileStylePrivate()
static const char *const normal_small_xpm[]
static const char *const horlines_xpm[]
The QStyleOptionFocusRect class is used to describe the parameters for drawing a focus rectangle with...
const char * styleHint(const QFontDef &request)
QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const
Reimplemented Function
int & rx()
Returns a reference to the x coordinate of this point.
void setSize(const QSize &s)
Sets the size of the rectangle to the given size.
The QImage class provides a hardware-independent image representation that allows direct access to th...
void transpose()
Swaps the width and height values.
The QStyleOptionFrame class is used to describe the parameters for drawing a frame.
void setTopLeft(const QPoint &p)
Set the top-left corner of the rectangle to the given position.
int pixelMetric(PixelMetric pm, const QStyleOption *option=0, const QWidget *widget=0) const
Reimplemented Function
void drawScrollbarGroove(QPainter *p, const QStyleOptionSlider *opt)
void qDrawWinButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
The QGroupBox widget provides a group box frame with a title.
static const int windowsMobileIconSize
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=0) const
Reimplemented Function
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule=Qt::OddEvenFill)
Draws the polygon defined by the first pointCount points in the array points using the current pen an...
void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)
The QRegion class specifies a clip region for a painter.
static const char *const checkedlight_low_xpm[]
void polish(QApplication *)
Reimplemented Function
The State element defines configurations of objects and properties.
void setCoords(int x1, int y1, int x2, int y2)
Sets the coordinates of the rectangle's top-left corner to (x1, y1), and the coordinates of its botto...
static const char *const max_big_xpm[]
static QColor fromRgbF(qreal r, qreal g, qreal b, qreal a=1.0)
Static convenience function that returns a QColor constructed from the RGB color values, r (red), g (green), b (blue), and a (alpha-channel, i.e.
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
QImage mirrored(bool horizontally=false, bool vertically=true) const
Returns a mirror of the image, mirrored in the horizontal and/or the vertical direction depending on ...
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget) const
Reimplemented Function
bool inherits(const char *classname) const
Returns true if this object is an instance of a class that inherits className or a QObject subclass t...
void drawTabBarTab(QPainter *p, const QStyleOptionTab *tab)
FrameFeatures features
a bitwise OR of the features that describe this frame.
const QBrush & brush(ColorGroup cg, ColorRole cr) const
Returns the brush in the specified color group, used for the given color role.
const T & at(int i) const
Returns the item at index position i in the vector.
int styleHint(StyleHint hint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const
Reimplemented Function
qreal hueF() const
Returns the hue color component of this color.
ViewItemPosition viewItemPosition
Gives the position of this view item relative to other items.
qreal dpiScaled(qreal value)
QPoint topRight() const
Returns the position of the rectangle's top-right corner.
const QBrush & brush() const
Returns the painter's current brush.
QColor toRgb() const
Create and returns an RGB QColor based on this color.
QPalette palette
the palette that should be used when painting the control
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QPoint center() const
Returns the center point of the rectangle.
const QBrush & shadow() const
Returns the shadow brush of the current color group.
SelectedPosition selectedPosition
the position of the selected tab in relation to this tab
void setPixel(int x, int y, uint index_or_rgb)
Sets the pixel index or color at (x, y) to index_or_rgb.
#define Q_ASSERT_X(cond, where, what)
int top() const
Returns the y-coordinate of the rectangle's top edge.
int width() const
Returns the width of the image.
void setDoubleControls(bool)
QImage convertToFormat(Format f, Qt::ImageConversionFlags flags=Qt::AutoColor) const Q_REQUIRED_RESULT
Returns a copy of the image in the given format.
The QListView class provides a list or icon view onto a model.
QImage imageRadioButtonChecked
ushort blue
Returns the blue color component of this color.
void setClipRegion(const QRegion &, Qt::ClipOperation op=Qt::ReplaceClip)
Sets the clip region to the given region using the specified clip operation.
int right() const
Returns the x-coordinate of the rectangle's right edge.
QPoint bottomLeft() const
Returns the position of the rectangle's bottom-left corner.
PrimitiveElement
This enum describes the various primitive elements.
void setLeft(int pos)
Sets the left edge of the rectangle to the given x coordinate.
void setClipping(bool enable)
Enables clipping if enable is true, or disables clipping if enable is false.
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush...
The QFont class specifies a font used for drawing text.
int y() const
Returns the y-coordinate of the rectangle's top edge.
Qt::BGMode backgroundMode() const
Returns the current background mode.
const QBrush & highlightedText() const
Returns the highlighted text brush of the current color group.
int midLineWidth
the mid-line width for drawing the frame
T qstyleoption_cast(const QStyleOption *opt)
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=0) const
Reimplemented Function
static const char *const normal_big_xpm[]
qreal redF() const
Returns the red color component of this color.
int x() const
Returns the x-coordinate of the rectangle's left edge.
QObject * parent() const
Returns a pointer to the parent object.
void setTextureImage(const QImage &image)
Sets the brush image to image.
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget=0) const
Reimplemented Function
void setRect(int x, int y, int w, int h)
Sets the coordinates of the rectangle's top-left corner to ({x}, {y}), and its size to the given widt...
The QPoint class defines a point in the plane using integer precision.
void setColor(ColorGroup cg, ColorRole cr, const QColor &color)
Sets the color in the specified color group, used for the given color role, to the specified solid co...
void setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
void setAlpha(int alpha)
Sets the alpha of this color to alpha.
The QStyleOptionGroupBox class describes the parameters for drawing a group box.
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
void setWidth(int w)
Sets the width of the rectangle to the given width.
void setPen(const QColor &color)
Sets the painter's pen to have style Qt::SolidLine, width 0 and the specified color.
int height() const
Returns the height.
Qt::LayoutDirection direction
the text layout direction that should be used when drawing text in the control
qreal blueF() const
Returns the blue color component of this color.
The QRect class defines a rectangle in the plane using integer precision.
static const char *const min_big_xpm[]
QImage imageRadioButtonHighlighted
int height() const
Returns the height of the image.
The QStyleOptionFrameV2 class is used to describe the parameters necessary for drawing a frame in Qt ...
void drawRect(const QRectF &rect)
Draws the current rectangle with the current pen and brush.
int y() const
Returns the y coordinate of this point.
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
Qt::Orientation orientation
the slider's orientation (horizontal or vertical)
The QPixmap class is an off-screen image representation that can be used as a paint device...
return(isPopup||isToolTip)
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
The qFuzzyCompare function is for comparing two matrices using a fuzziness factor.
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *option) const
Reimplemented Function
The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.
void drawScrollbarHandleDown(QPainter *p, QStyleOptionSlider *opt, bool completeFrame=false, bool secondScrollBar=false)
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
Draws the rectangular portion source of the given pixmap into the given target in the paint device...
int height() const
Returns the height of the pixmap.
void unpolish(QApplication *)
Reimplemented Function
void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const
Reimplemented Function
static const int windowsMobileFrameGroupBoxOffset
static Q_DECL_CONSTEXPR bool qFuzzyIsNull(double d)
ControlElement
This enum represents a control element.
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider...
static const int PE_IndicatorArrowRightBig
int pointSize() const
Returns the point size of the font.
The QSize class defines the size of a two-dimensional object using integer point precision.
void setFont(const QFont &f)
Sets the painter's font to the given font.
void setPoints(int nPoints, const int *points)
Resizes the polygon to nPoints and populates it with the given points.
static const char *const cross_big_xpm[]
const QBrush & buttonText() const
Returns the button text foreground brush of the current color group.
QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget=0) const
Reimplemented Function
void reserve(int size)
Attempts to allocate memory for at least size elements.
int x() const
Returns the x coordinate of this point.
static const int PE_IndicatorArrowLeftBig
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls...
bool isValid() const
Returns true if the color is valid; otherwise returns false.
QRgb rgba() const
Returns the RGB value of the color, including its alpha.
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
static const char *const arrowdown_xpm[]
QImage scaled(int w, int h, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const
int height() const
Returns the height of the font.
QColor lighter(int f=150) const
Returns a lighter (or darker) color, but does not change this object.
bool isValid() const
Returns true if the rectangle is valid, otherwise returns false.
void translate(int dx, int dy)
Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position...
const QBrush & button() const
Returns the button brush of the current color group.
void setupWindowsMobileStyle65()
bool qt_wince_is_high_dpi()
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
ushort green
Returns the green color component of this color.
static const int windowsMobileIndicatorSize
static const char *const highlightedradiobutton_xpm[]
int size() const
Returns the number of items in the vector.
const QBrush & window() const
Returns the window (general background) brush of the current color group.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QRect rect
the area that should be used for various calculations and painting
QVector< QRgb > colorTable() const
Returns a list of the colors contained in the image's color table, or an empty list if the image does...
QStyle::SubControls subControls
This variable holds a bitwise OR of the sub-controls to be drawn for the complex control.
QRgb rgb() const
Returns the RGB value of the color.
void drawScrollbarHandleUp(QPainter *p, QStyleOptionSlider *opt, bool completeFrame=false, bool secondScrollBar=false)
static const int windowsItemFrame
void setBackground(const QBrush &bg)
Sets the background brush of the painter to the given brush.
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *w=0) const
Reimplemented Function
static bool isTabWidget(const QAInterface &interface)
const QBrush & text() const
Returns the text foreground brush of the current color group.
SubElement
This enum represents a sub-area of a widget.
bool qt_wince_is_windows_mobile_65()
void setWidth(int width)
Sets the pen width to the given width in pixels with integer precision.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.
static void visualRect(QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
QTextStream & left(QTextStream &stream)
Calls QTextStream::setFieldAlignment(QTextStream::AlignLeft) on stream and returns stream...
void translate(const QPointF &offset)
Translates the coordinate system by the given offset; i.e.
The QPalette class contains color groups for each widget state.