Changeset 3006

Show
Ignore:
Timestamp:
06/17/06 05:16:03 (3 years ago)
Author:
madcat
Message:

Fixed incorrect painting of list headers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/hngui/customheader.cpp

    r2947 r3006  
    4545        } 
    4646 
    47         QPainter p(this); 
     47        QPainter p(viewport()); 
    4848        p.setBrush(QColor(201, 238, 253, 183)); 
    49 //      p.setPen(QColor(0, 0, 9, 183)); 
    5049        p.setPen(Qt::black); 
    5150        p.drawRect(0, 0, width(), height() - 1); 
     
    7271        ); 
    7372 
    74 /* 
    75         p->setBrush(QColor(201, 238, 253, 183)); 
    76         p->setPen(QColor(201, 238, 253, 183)); 
    77  
    78         p->drawRect(rect.x(), rect.y(), rect.width(), rect.height() - 1); 
    79  
    80         p->setPen(QColor(0, 0, 0, 183)); 
    81         p->drawLine(rect.bottomLeft(), rect.bottomRight()); 
    82         p->drawLine(rect.topLeft(), rect.topRight()); 
    83         p->setPen(QColor(0, 0, 0, 50)); 
    84 */ 
    8573        QString text( 
    8674                model()->headerData( 
     
    9886                return; 
    9987        } 
    100 //      if (visualIndexAt(logicalIndex) > 0) { 
    101 //              p->drawPixmap(rect.x(), 0, sep); 
    102 //      } 
     88 
    10389        if (visualIndexAt(logicalIndex) < count() - hiddenSectionCount()) { 
    10490                p->drawPixmap(rect.x() + rect.width() - 1, 0, sep); 
     
    146132                        setSectionHidden(col, true); 
    147133                } else { 
    148 //                      setStretchLastSection(false); 
    149134                        setSectionHidden(col, false); 
    150135                        QString key("/" + objectName() + "/%1");