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

Add changed connection to gradientSliders in KCM #147

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/kcm/ShapeCornersKCM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ ShapeCornersKCM::ShapeCornersKCM(QWidget* parent, const QVariantList& args)
connect(ui->kcfg_ActiveShadowUsePalette, &QRadioButton::toggled, this, &ShapeCornersKCM::update_colors);
connect(ui->kcfg_InactiveShadowUsePalette, &QRadioButton::toggled, this, &ShapeCornersKCM::update_colors);

// It was expected that the Apply button would get enabled automatically as the gradient sliders move, but it doesn't.
// Maybe it is a bug on the KCM side. Need to check and delete these lines later.
connect(ui->kcfg_ActiveShadowAlpha, &KGradientSelector::sliderMoved, this, &ShapeCornersKCM::markAsChanged);
connect(ui->kcfg_InactiveShadowAlpha, &KGradientSelector::sliderMoved, this, &ShapeCornersKCM::markAsChanged);
connect(ui->kcfg_ActiveOutlineAlpha, &KGradientSelector::sliderMoved, this, &ShapeCornersKCM::markAsChanged);
connect(ui->kcfg_InactiveOutlineAlpha, &KGradientSelector::sliderMoved, this, &ShapeCornersKCM::markAsChanged);

connect(ui->refreshButton, &QPushButton::pressed, this, &ShapeCornersKCM::update_windows);
connect(ui->includeButton, &QPushButton::pressed, [=, this]() {
if (const auto s = ui->currentWindowList->currentItem();
Expand Down