Logo Search packages:      
Sourcecode: kcpuload version File versions  Download package

void StatPopup::paintEvent ( QPaintEvent *   )  [protected]

Custom painting routine.

Definition at line 411 of file statpopup.cpp.

References colorBorder, and fullReading.

                                       {
    QPainter p(this);

    // Draw the border.
    p.setPen(colorBorder);
    p.drawLine(0, 0, width(), 0);
    p.drawLine(0, 1, width(), 1);
    p.drawLine(0, 2, 0, height());
    p.drawLine(1, 2, 1, height());
    p.drawLine(width() - 2, 2, width() - 2, height());
    p.drawLine(width() - 1, 2, width() - 1, height());
    p.drawLine(2, height() - 2, width() - 2, height() - 2);
    p.drawLine(2, height() - 1, width() - 2, height() - 1);

    // Draw the text.
    p.setFont(font());
    p.setPen(colorGroup().foreground());
    p.drawText(rect(), AlignHCenter | AlignVCenter, fullReading);
}


Generated by  Doxygen 1.6.0   Back to index