Dialog.cpp   Dialog.cpp 
skipping to change at line 30 skipping to change at line 30
#include <QDebug> #include <QDebug>
#include "Dialog.hpp" #include "Dialog.hpp"
void BarFrame::mousePressEvent(QMouseEvent *event) void BarFrame::mousePressEvent(QMouseEvent *event)
{ {
mousePos = event->pos(); mousePos = event->pos();
moving = true; moving = true;
} }
void BarFrame::mouseReleaseEvent(QMouseEvent *event) void BarFrame::mouseReleaseEvent(QMouseEvent *)
{ {
moving = false; moving = false;
} }
void BarFrame::mouseMoveEvent(QMouseEvent *event) void BarFrame::mouseMoveEvent(QMouseEvent *event)
{ {
if (!moving) return; if (!moving) return;
QPoint dpos = event->pos() - mousePos; QPoint dpos = event->pos() - mousePos;
QWidget* p = dynamic_cast<QWidget*>(QFrame::parent()); QWidget* p = dynamic_cast<QWidget*>(QFrame::parent());
p->move(p->pos() + dpos); p->move(p->pos() + dpos);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/