hi..

some may have noticed that i enabled the apply button by default in widget 
config dialogs. i found a cute little hack to make the apply buttons 
deactivate properly on ok/apply being hit. (or so i hope :)

now what we need to do is run around to all the C++ plasmoids and connect the 
widgets in their config dialogs to the settingsModified() slot in the 
KConfigDialog* that is passed in.. something like this:

    connect(uiDisplay.labelEdit, SIGNAL(textChanged(QString)), 
                   parent, SLOT(settingsModified()));
    connect(uiDisplay.flowCombo, SIGNAL(currentIndexChanged(int)),
                   parent, SLOT(settingsModified()));
    connect(uiDisplay.sizeSlider, SIGNAL(valueChanged(int)),
                   parent, SLOT(settingsModified()));
    connect(uiDisplay.showPreviews, SIGNAL(toggled(bool)),
                   parent, SLOT(settingsModified()));
 
i've put it on the tasks page and we can start listing all the ones that are 
finished as we go right here:

        http://community.kde.org/Plasma/Tasks#config_dialogs

cheers ...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to