Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void ShapedClock::resizeEvent ( QResizeEvent event  )  [protected, virtual]

[3]

[4]

Reimplemented from QWidget.

Definition at line 147 of file shapedclock.cpp.

References QWidget::height(), QWidget::setMask(), and QWidget::width().

{
    int side = qMin(width(), height());
    QRegion maskedRegion(width() / 2 - side / 2, height() / 2 - side / 2, side,
                         side, QRegion::Ellipse);
    setMask(maskedRegion);
}


Generated by  Doxygen 1.6.0   Back to index