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

void ShapedClock::mousePressEvent ( QMouseEvent event  )  [protected, virtual]

[0]

[1]

Reimplemented from QWidget.

Definition at line 69 of file shapedclock.cpp.

References QMouseEvent::button(), QWidget::frameGeometry, and QRect::topLeft().

{
    if (event->button() == Qt::LeftButton) {
        dragPosition = event->globalPos() - frameGeometry().topLeft();
        event->accept();
    }
}


Generated by  Doxygen 1.6.0   Back to index