- QPainter painter(this);
-
- if(rect().isValid() && rect().height() > minimumSizeHint().height()) {
- for(int i = 0; i < 2; i++) {
- QPoint topLeft = rect().topLeft() + QPoint(3 + i*2, 2);
- QPoint bottomRight = rect().topLeft() + QPoint(3 + i*2, rect().height() - 2);
- qDrawShadeLine(&painter, topLeft, bottomRight, palette());
+ if (rect().isValid() && rect().height() > minimumSizeHint().height()) {
+ for (int i = 0; i < 2; i++) {
+ QPoint topLeft = rect().topLeft() + QPoint(3 + i * 2, 2);
+ QPoint bottomRight = rect().topLeft() + QPoint(3 + i * 2, rect().height() - 2);
+ qDrawShadeLine(&painter, topLeft, bottomRight, palette());
+ }