Commit 2f6f59f6 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

pixeltool: Pick color under cursor also outside of the pixeltool window


We want to pick color directly from the whole screen

Change-Id: Ifc845b1303203db54c657dac6fa02ba841b97fcc
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
Showing with 1 addition and 0 deletions
...@@ -553,6 +553,7 @@ void QPixelTool::grabScreen() ...@@ -553,6 +553,7 @@ void QPixelTool::grabScreen()
update(); update();
m_currentColor = m_buffer.toImage().pixel(m_buffer.rect().center());
m_lastMousePos = mousePos; m_lastMousePos = mousePos;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment