D27988: KCM/Compositing: Use KConfig XT in UI

Kevin Ottens <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
ervin requested changes to this revision.
ervin added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> kwincompositing_setting.kcfg:25
> +
> +       <entry name="GLTextureFilter" type="Int">
> +        <default>2</default>

This is asking for name + value (to avoid the dreaded "gL" on the C++ side)

> kwincompositing_setting.kcfg:45
> +
> +       <entry name="GLPreferBufferSwap" type="Enum">
> +           <default>AutoSwapStrategy</default>

ditto

> kwincompositing_setting.kcfg:64
> +
> +       <entry name="GLCore" type="Bool">
> +           <default>false</default>

ditto

> kwincompositing_setting.kcfg:72
> +
> +       <entry name="GLPlatformInterface" type="String">
> +           <default>glx</default>

ditto

> main.cpp:106
>  
> -void KWinCompositingSettings::init()
> -{
> -    using namespace KWin::Compositing;
> -    auto currentIndexChangedSignal = static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged);
> +void KWinCompositingKCM::reenableGL() {
> +    m_settings->setOpenGLIsUnsafe(false);

{ should be on its own line

> main.cpp:219
> +
> +    const bool changed = m_glCore != glCore || backend != m_backend || m_animationDurationFactor != animationDuration;
> +    emit unmanagedWidgetChangeState(changed);

I'd split the clauses on several lines for readability

> main.cpp:222
> +
> +    const bool defaulted = glCore != m_settings->defaultGLCoreValue() && backend != m_settings->defaultBackendValue() && animationDuration != m_settings->defaultAnimationDurationFactorValue();
> +    emit unmanagedWidgetDefaultState(defaulted);

ditto (especially for that one the line is getting quite long)

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D27988

To: meven, #kwin, ervin, crossi, bport, hchain
Cc: zzag, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.