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)
|
void KGlobalSettings::Private::_k_slotNotifyChange(int changeType, int arg)
|
||||||
{
|
{
|
||||||
switch(changeType) {
|
switch(changeType) {
|
||||||
|
case SettingsChanged: {
|
||||||
|
KGlobal::config()->reparseConfiguration();
|
||||||
|
emit q->settingsChanged();
|
||||||
|
break;
|
||||||
|
}
|
||||||
case StyleChanged: {
|
case StyleChanged: {
|
||||||
if (activated) {
|
if (activated) {
|
||||||
KGlobal::config()->reparseConfiguration();
|
KGlobal::config()->reparseConfiguration();
|
||||||
|
|
|
@ -446,8 +446,8 @@ public:
|
||||||
* \see emitChange
|
* \see emitChange
|
||||||
*/
|
*/
|
||||||
enum ChangeType {
|
enum ChangeType {
|
||||||
PaletteChanged = 0, FontChanged, StyleChanged,
|
SettingsChanged = 0, PaletteChanged, FontChanged,
|
||||||
IconChanged, MouseChanged, LocaleChanged,
|
StyleChanged, IconChanged, MouseChanged, LocaleChanged,
|
||||||
ToolbarStyleChanged, PathsChanged, NaturalSortingChanged,
|
ToolbarStyleChanged, PathsChanged, NaturalSortingChanged,
|
||||||
ShortcutsChanged, BlockShortcuts
|
ShortcutsChanged, BlockShortcuts
|
||||||
};
|
};
|
||||||
|
@ -488,6 +488,11 @@ public:
|
||||||
void activate(ActivateOptions options);
|
void activate(ActivateOptions options);
|
||||||
|
|
||||||
Q_SIGNALS:
|
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.
|
* Emitted when the application has changed its palette due to a KControl request.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue