Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cursor icon always on option to general settings #311

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

AdenKoperczak
Copy link
Contributor

This is going to fail some clang-tidy checks.
The checkbox text may need changing, and a tool tip could be added mentioning CTRL.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

// Cursor Icon
bool cursorIconVisible = QGuiApplication::keyboardModifiers() &
Qt::KeyboardModifier::ControlModifier;
bool cursorIconVisible =
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'cursorIconVisible' of type 'bool' can be declared 'const' [misc-const-correctness]

Suggested change
bool cursorIconVisible =
bool const cursorIconVisible =

@@ -53,6 +53,7 @@ class GeneralSettings : public SettingsCategory
SettingsVariable<bool>& track_location() const;
SettingsVariable<bool>& update_notifications_enabled() const;
SettingsVariable<std::string>& warnings_provider() const;
SettingsVariable<bool>& cursor_icon_always_on() const;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'cursor_icon_always_on' should be marked [[nodiscard]] [modernize-use-nodiscard]

Suggested change
SettingsVariable<bool>& cursor_icon_always_on() const;
[[nodiscard]] SettingsVariable<bool>& cursor_icon_always_on() const;

@dpaulat dpaulat merged commit dcea341 into dpaulat:develop Dec 3, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants