[kcmkwin/compositing] Carry the changed argument in the changed signals
This commit is contained in:
parent
6afc82196f
commit
b259dda336
2 changed files with 20 additions and 20 deletions
|
@ -212,7 +212,7 @@ void Compositing::setAnimationSpeed(int speed)
|
|||
return;
|
||||
}
|
||||
m_animationSpeed = speed;
|
||||
emit animationSpeedChanged();
|
||||
emit animationSpeedChanged(speed);
|
||||
}
|
||||
|
||||
void Compositing::setGlColorCorrection(bool correction)
|
||||
|
@ -221,7 +221,7 @@ void Compositing::setGlColorCorrection(bool correction)
|
|||
return;
|
||||
}
|
||||
m_glColorCorrection = correction;
|
||||
emit glColorCorrectionChanged();
|
||||
emit glColorCorrectionChanged(correction);
|
||||
}
|
||||
|
||||
void Compositing::setGlScaleFilter(int index)
|
||||
|
@ -230,7 +230,7 @@ void Compositing::setGlScaleFilter(int index)
|
|||
return;
|
||||
}
|
||||
m_glScaleFilter = index;
|
||||
emit glScaleFilterChanged();
|
||||
emit glScaleFilterChanged(index);
|
||||
}
|
||||
|
||||
void Compositing::setGlSwapStrategy(int strategy)
|
||||
|
@ -239,7 +239,7 @@ void Compositing::setGlSwapStrategy(int strategy)
|
|||
return;
|
||||
}
|
||||
m_glSwapStrategy = strategy;
|
||||
emit glSwapStrategyChanged();
|
||||
emit glSwapStrategyChanged(strategy);
|
||||
}
|
||||
|
||||
void Compositing::setUnredirectFullscreen(bool unredirect)
|
||||
|
@ -248,7 +248,7 @@ void Compositing::setUnredirectFullscreen(bool unredirect)
|
|||
return;
|
||||
}
|
||||
m_unredirectFullscreen = unredirect;
|
||||
emit unredirectFullscreenChanged();
|
||||
emit unredirectFullscreenChanged(unredirect);
|
||||
}
|
||||
|
||||
void Compositing::setWindowThumbnail(int index)
|
||||
|
@ -257,7 +257,7 @@ void Compositing::setWindowThumbnail(int index)
|
|||
return;
|
||||
}
|
||||
m_windowThumbnail = index;
|
||||
emit windowThumbnailChanged();
|
||||
emit windowThumbnailChanged(index);
|
||||
}
|
||||
|
||||
void Compositing::setXrScaleFilter(bool filter)
|
||||
|
@ -266,7 +266,7 @@ void Compositing::setXrScaleFilter(bool filter)
|
|||
return;
|
||||
}
|
||||
m_xrScaleFilter = filter;
|
||||
emit xrScaleFilterChanged();
|
||||
emit xrScaleFilterChanged(filter);
|
||||
}
|
||||
|
||||
void Compositing::setCompositingType(int index)
|
||||
|
@ -275,7 +275,7 @@ void Compositing::setCompositingType(int index)
|
|||
return;
|
||||
}
|
||||
m_compositingType = index;
|
||||
emit compositingTypeChanged();
|
||||
emit compositingTypeChanged(index);
|
||||
}
|
||||
|
||||
void Compositing::setCompositingEnabled(bool enabled)
|
||||
|
@ -285,7 +285,7 @@ void Compositing::setCompositingEnabled(bool enabled)
|
|||
}
|
||||
|
||||
m_compositingEnabled = enabled;
|
||||
emit compositingEnabledChanged();
|
||||
emit compositingEnabledChanged(enabled);
|
||||
}
|
||||
|
||||
void Compositing::save()
|
||||
|
@ -364,7 +364,7 @@ void Compositing::setOpenGLPlatformInterface(int interface)
|
|||
return;
|
||||
}
|
||||
m_openGLPlatformInterface = interface;
|
||||
emit openGLPlatformInterfaceChanged();
|
||||
emit openGLPlatformInterfaceChanged(interface);
|
||||
}
|
||||
|
||||
CompositingType::CompositingType(QObject *parent)
|
||||
|
|
|
@ -82,16 +82,16 @@ public Q_SLOTS:
|
|||
|
||||
Q_SIGNALS:
|
||||
void changed();
|
||||
void animationSpeedChanged();
|
||||
void windowThumbnailChanged();
|
||||
void glScaleFilterChanged();
|
||||
void xrScaleFilterChanged();
|
||||
void unredirectFullscreenChanged();
|
||||
void glSwapStrategyChanged();
|
||||
void glColorCorrectionChanged();
|
||||
void compositingTypeChanged();
|
||||
void compositingEnabledChanged();
|
||||
void openGLPlatformInterfaceChanged();
|
||||
void animationSpeedChanged(int);
|
||||
void windowThumbnailChanged(int);
|
||||
void glScaleFilterChanged(int);
|
||||
void xrScaleFilterChanged(int);
|
||||
void unredirectFullscreenChanged(bool);
|
||||
void glSwapStrategyChanged(int);
|
||||
void glColorCorrectionChanged(bool);
|
||||
void compositingTypeChanged(int);
|
||||
void compositingEnabledChanged(bool);
|
||||
void openGLPlatformInterfaceChanged(int);
|
||||
|
||||
private:
|
||||
int m_animationSpeed;
|
||||
|
|
Loading…
Reference in a new issue