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

Backlight #237

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Backlight #237

merged 1 commit into from
Nov 24, 2019

Conversation

luis-pereira
Copy link
Member

No description provided.

VirtualBackEnd defined the backlightChanged signal. But the LinuxBackend
inherits VirtualBackEnd and defines the signal again, overriding it.

LXQt::Backlight correctly uses the VirtualBackEnd::backlightChanged signal:
connect(m_backend, &VirtualBackEnd::backlightChanged,
    this, &Backlight::backlightChangedSlot);

and that implies that for the LinuxBackend case the backlightChangedSlot
slot is never called. The signal source is LinuxBackend not VirtualBackEnd.

The fix is simple, just delete the LinuxBackend backlightChanged signal.

A user using the LXQt::Backlight would never get the backlightChanged
signal.
Copy link
Member

@tsujan tsujan left a comment

Choose a reason for hiding this comment

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

GTM

@agaida agaida merged commit 8bbb772 into master Nov 24, 2019
@agaida agaida deleted the backlight branch November 24, 2019 15:07
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.

3 participants