X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fregiongrabber.cpp;h=1ff587b74c3e6dd9f51a04da1a32d41808c6202f;hb=32292778e58c6ff7bc6e379ec595294cf691d297;hp=9c7a3d90eb546f4b038b590cfff9d1f1d4f455b9;hpb=c42a026234a44a2d766e57bc64a6ac7bbd094000;p=kdenlive diff --git a/src/regiongrabber.cpp b/src/regiongrabber.cpp index 9c7a3d90..1ff587b7 100644 --- a/src/regiongrabber.cpp +++ b/src/regiongrabber.cpp @@ -29,13 +29,23 @@ #include RegionGrabber::RegionGrabber() : - QWidget(0), selection(), mouseDown(false), newSelection(false), - handleSize(10), mouseOverHandle(0), idleTimer(), - showHelp(true), grabbing(false), - TLHandle(0, 0, handleSize, handleSize), TRHandle(0, 0, handleSize, handleSize), - BLHandle(0, 0, handleSize, handleSize), BRHandle(0, 0, handleSize, handleSize), - LHandle(0, 0, handleSize, handleSize), THandle(0, 0, handleSize, handleSize), - RHandle(0, 0, handleSize, handleSize), BHandle(0, 0, handleSize, handleSize) + QWidget(0), + selection(), + mouseDown(false), + newSelection(false), + handleSize(10), + mouseOverHandle(0), + idleTimer(), + showHelp(true), + grabbing(false), + TLHandle(0, 0, handleSize, handleSize), + TRHandle(0, 0, handleSize, handleSize), + BLHandle(0, 0, handleSize, handleSize), + BRHandle(0, 0, handleSize, handleSize), + LHandle(0, 0, handleSize, handleSize), + THandle(0, 0, handleSize, handleSize), + RHandle(0, 0, handleSize, handleSize), + BHandle(0, 0, handleSize, handleSize) { handles << &TLHandle << &TRHandle << &BLHandle << &BRHandle << &LHandle << &THandle << &RHandle << &BHandle; @@ -68,7 +78,7 @@ void RegionGrabber::displayHelp() void RegionGrabber::paintEvent(QPaintEvent* e) { - Q_UNUSED(e); + Q_UNUSED(e) if (grabbing) // grabWindow() should just get the background return; @@ -159,7 +169,7 @@ void RegionGrabber::paintEvent(QPaintEvent* e) void RegionGrabber::resizeEvent(QResizeEvent* e) { - Q_UNUSED(e); + Q_UNUSED(e) if (selection.isNull()) return; QRect r = selection;