mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Remove unused lambda capture.
This commit is contained in:
parent
a12bb068d0
commit
945ed65ba7
@ -191,10 +191,7 @@ void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
|
||||
return;
|
||||
}
|
||||
|
||||
// note: grabber is self-managed and will destroy itself when done
|
||||
ScreenshotGrabber* screenshotGrabber = new ScreenshotGrabber;
|
||||
|
||||
auto onGrabbed = [screenshotGrabber, devName, this](QRect region) {
|
||||
auto onGrabbed = [devName, this](QRect region) {
|
||||
VideoMode mode(region);
|
||||
mode.width = mode.width / 2 * 2;
|
||||
mode.height = mode.height / 2 * 2;
|
||||
@ -210,6 +207,9 @@ void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
|
||||
open(devName, mode);
|
||||
};
|
||||
|
||||
// note: grabber is self-managed and will destroy itself when done
|
||||
ScreenshotGrabber* screenshotGrabber = new ScreenshotGrabber;
|
||||
|
||||
connect(screenshotGrabber, &ScreenshotGrabber::regionChosen, this, onGrabbed,
|
||||
Qt::QueuedConnection);
|
||||
screenshotGrabber->showGrabber();
|
||||
|
Loading…
x
Reference in New Issue
Block a user