File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1574,20 +1574,20 @@ QColor QColorDialogPrivate::grabScreenColor(const QPoint &p)
15741574{
15751575 // Get the screen at p if it exists.
15761576 QScreen *screen = QGuiApplication::screenAt (p);
1577- QScreen *primary_screen = QGuiApplication::primaryScreen ();
1577+ QScreen *primaryScreen = QGuiApplication::primaryScreen ();
15781578
1579- if (!screen || screen == primary_screen )
1579+ if (!screen || screen == primaryScreen )
15801580 // If no screen found then use primary. Origin is (0,0) so no need to shift.
1581- return grabScreenColor (p, primary_screen );
1581+ return grabScreenColor (p, primaryScreen );
15821582
15831583 // Get the origin of the current screen
15841584 const QPoint origin = screen->geometry ().topLeft ();
15851585
15861586 // Convert the logical global point to a logical screen point.
1587- const QPoint screen_p = p - origin;
1587+ const QPoint screenPos = p - origin;
15881588
15891589 // Use the shifted point to return the screen color
1590- return grabScreenColor (screen_p , screen);
1590+ return grabScreenColor (screenPos , screen);
15911591}
15921592
15931593// Get the pixel color at the specified point p on the specified screen.
You can’t perform that action at this time.
0 commit comments