| 64 | |
| 65 | protected: |
| 66 | virtual void paintEvent( QPaintEvent * ) |
| 67 | { |
| 68 | QStylePainter p( this ); |
| 69 | QStyleOptionToolButton opt; |
| 70 | initStyleOption( &opt ); |
| 71 | if( orientation() == Qt::Vertical ) |
| 72 | { |
| 73 | const QSize s = sizeHint(); |
| 74 | p.rotate( 270 ); |
| 75 | p.translate( -s.height(), 0 ); |
| 76 | opt.rect = QRect( 0, 0, s.height(), s.width() ); |
| 77 | } |
| 78 | p.drawComplexControl( QStyle::CC_ToolButton, opt ); |
| 79 | } |
| 80 | |
| 81 | |
| 82 | private: |
nothing calls this directly
no test coverage detected