mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: new KGlobalSettings signal and enum for global config change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d281fc7b64
commit
b4657deb95
2 changed files with 12 additions and 2 deletions
|
@ -422,6 +422,11 @@ void KGlobalSettings::emitChange(ChangeType changeType, int arg)
|
|||
void KGlobalSettings::Private::_k_slotNotifyChange(int changeType, int arg)
|
||||
{
|
||||
switch(changeType) {
|
||||
case SettingsChanged: {
|
||||
KGlobal::config()->reparseConfiguration();
|
||||
emit q->settingsChanged();
|
||||
break;
|
||||
}
|
||||
case StyleChanged: {
|
||||
if (activated) {
|
||||
KGlobal::config()->reparseConfiguration();
|
||||
|
|
|
@ -446,8 +446,8 @@ public:
|
|||
* \see emitChange
|
||||
*/
|
||||
enum ChangeType {
|
||||
PaletteChanged = 0, FontChanged, StyleChanged,
|
||||
IconChanged, MouseChanged, LocaleChanged,
|
||||
SettingsChanged = 0, PaletteChanged, FontChanged,
|
||||
StyleChanged, IconChanged, MouseChanged, LocaleChanged,
|
||||
ToolbarStyleChanged, PathsChanged, NaturalSortingChanged,
|
||||
ShortcutsChanged, BlockShortcuts
|
||||
};
|
||||
|
@ -488,6 +488,11 @@ public:
|
|||
void activate(ActivateOptions options);
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* Emitted when the global settings have been changed.
|
||||
*/
|
||||
void settingsChanged();
|
||||
|
||||
/**
|
||||
* Emitted when the application has changed its palette due to a KControl request.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue