https://bugs.kde.org/show_bug.cgi?id=477718

            Bug ID: 477718
           Summary: Buttons do not update when ConfigModule.buttons
                    property is changed,
    Classification: Applications
           Product: systemsettings
           Version: 5.27.9
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: golube...@altlinux.org
  Target Milestone: ---

I'm creating a KCM module, and would like to sometimes hide the "Defaults"
button. Main KCM class inherits from ConfigModule, which has a public property
"buttons". But when changing this property, visually nothing happens, like the
signal does not reach ModuleView::updateButtons. And there doesn't seem to be a
good way to manually update this.

But, for example, changing the needsSave property leads to updating the buttons
and some button may “unexpectedly” disappear or appear.

This is how I use it - I invert needsSave twice to update the buttons, but
this, of course, is wrong.

Here I posted a minimal example to reproduce (see main.qml):
https://gitlab.com/golubevan/kcm-minimal/-/tree/update-buttons

SOFTWARE/OS VERSIONS

Linux 6.5.12 (X11)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to