"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/snippingArea/WinSnippingArea.cpp" between
ksnip-1.8.1.tar.gz and ksnip-1.8.2.tar.gz

About: ksnip is a Qt based cross-platform screenshot tool that provides many annotation features for your screenshots.

WinSnippingArea.cpp  (ksnip-1.8.1):WinSnippingArea.cpp  (ksnip-1.8.2)
skipping to change at line 34 skipping to change at line 34
setWindowFlags(windowFlags() | Qt::Tool); setWindowFlags(windowFlags() | Qt::Tool);
} }
QRect WinSnippingArea::selectedRectArea() const QRect WinSnippingArea::selectedRectArea() const
{ {
if(isBackgroundTransparent()) { if(isBackgroundTransparent()) {
auto topLeft = mapToGlobal(mCaptureArea.topLeft()); auto topLeft = mapToGlobal(mCaptureArea.topLeft());
auto bottomRight = mapToGlobal(mCaptureArea.bottomRight()); auto bottomRight = mapToGlobal(mCaptureArea.bottomRight());
return {topLeft, bottomRight}; return {topLeft, bottomRight};
} else { } else {
return mCaptureArea; return mHdpiScaler.scale(mCaptureArea);
} }
} }
void WinSnippingArea::setFullScreen() void WinSnippingArea::setFullScreen()
{ {
auto fullScreenRect = getFullScreenRect(); auto fullScreenRect = getFullScreenRect();
setGeometry(fullScreenRect); setGeometry(fullScreenRect);
QWidget::show(); QWidget::show();
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)