mirror of
https://github.com/brmlab/microview.git
synced 2025-06-08 19:44:25 +02:00
add more functionality
This commit is contained in:
parent
338dee788a
commit
acfcfd997b
6 changed files with 95 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "videoview.h"
|
||||
#include "microview.h"
|
||||
#include <qdebug.h>
|
||||
|
||||
VideoView::VideoView(QWidget *parent) :
|
||||
|
@ -8,12 +9,15 @@ VideoView::VideoView(QWidget *parent) :
|
|||
|
||||
void VideoView::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
// TODO: process position
|
||||
qDebug() << event->pos();
|
||||
}
|
||||
|
||||
void VideoView::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
// TODO: process delta
|
||||
qDebug() << event->delta();
|
||||
if (event->delta() > 0) {
|
||||
qDebug() << MSG_PLUS;
|
||||
} else
|
||||
if (event->delta() < 0) {
|
||||
qDebug() << MSG_MINUS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue