diff options
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r-- | client/videowidget.cc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/client/videowidget.cc b/client/videowidget.cc index f6fc430..f679a3a 100644 --- a/client/videowidget.cc +++ b/client/videowidget.cc @@ -85,53 +85,3 @@ void VideoWidget::mouseReleaseEvent(QMouseEvent *event) } */ } - -void VideoWidget::moveEvent(QMoveEvent *event) -{ - mutex.lock(); - myposition = mapToGlobal(event->pos()); - mutex.unlock(); -} - -void VideoWidget::resizeEvent(QResizeEvent *event) -{ - mutex.lock(); - mysize = event->size(); - mutex.unlock(); -} - -int VideoWidget::getX() -{ - int val; - mutex.lock(); - val = myposition.x(); - mutex.unlock(); - return val; -} - -int VideoWidget::getY() -{ - int val; - mutex.lock(); - val = myposition.y(); - mutex.unlock(); - return val; -} - -int VideoWidget::getWidth() -{ - int val; - mutex.lock(); - val = mysize.width();//>720?720:mysize.width(); - mutex.unlock(); - return val; -} - -int VideoWidget::getHeight() -{ - int val; - mutex.lock(); - val = mysize.height();//>576?576:mysize.height(); - mutex.unlock(); - return val; -} |