-
- QRect rt = rr;
- if ( flags & Style_Horizontal )
- rt.addCoords( 0, 20, 0, 0 );
- else
- rt.addCoords( 0, 0, -20, 0 );
-
- int textW = flags & Style_Horizontal ? rt.height() : rt.width();
- int textH = flags & Style_Horizontal ? rt.width() : rt.height();
-
- QString title = titleText( wnd->caption(), textW, p->fontMetrics() );
-
- if ( wnd )
- {
- QColorGroup cgroup = wnd->isActiveWindow() ? wnd->palette().active() : wnd->palette().inactive();
- p->setPen( cgroup.highlightedText() );
-
- if ( flags & Style_Horizontal )
- {
- p->rotate( 270.0 );
- p->translate( -(rt.height()+rt.y()), (rt.width()-rt.x()) );
- p->drawText( 0, 0, title );
- }
- else
- p->drawText( 2, 2, textW, textH, AlignLeft, title );
- }
- }
+\r
+ QRect rt = rr;\r
+ if ( flags & Style_Horizontal )\r
+ rt.addCoords( 0, 20, 0, 0 );\r
+ else\r
+ rt.addCoords( 0, 0, -20, 0 );\r
+\r
+ int textW = flags & Style_Horizontal ? rt.height() : rt.width();\r
+ int textH = flags & Style_Horizontal ? rt.width() : rt.height();\r
+\r
+ QString title = titleText( wnd->caption(), textW, p->fontMetrics() );\r
+\r
+ if ( wnd )\r
+ {\r
+ QColorGroup cgroup = wnd->isActiveWindow() ? wnd->palette().active() : wnd->palette().inactive();\r
+ p->setPen( cgroup.highlightedText() );\r
+\r
+ if ( flags & Style_Horizontal )\r
+ {\r
+ p->rotate( 270.0 );\r
+ p->translate( -(rt.height()+rt.y()), (rt.width()-rt.x()) );\r
+ p->drawText( 0, 0, title );\r
+ }\r
+ else\r
+ p->drawText( 2, 2, textW, textH, AlignLeft, title );\r
+ }\r
+ }\r