Skip to content

Commit 664eb36

Browse files
LF-34205 Rename variables to camelCase
Implement code review suggestion to keep variables names line with the camelCase convention.
1 parent 87f20dc commit 664eb36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/widgets/dialogs/qcolordialog.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)