we only care about config file changes in teh case of the default theme; all other themes are on their own on this one
svn path=/trunk/KDE/kdelibs/; revision=972838
This commit is contained in:
parent
7e4ca0dd7b
commit
dfd591aa73
11
theme.cpp
11
theme.cpp
@ -84,11 +84,6 @@ public:
|
||||
QObject::connect(compositeWatch, SIGNAL(lostOwner()), q, SLOT(compositingChanged()));
|
||||
}
|
||||
#endif
|
||||
|
||||
//FIXME: if/when kconfig gets change notification, this will be unecessary
|
||||
KDirWatch::self()->addFile(KStandardDirs::locateLocal("config", ThemePrivate::themeRcFile));
|
||||
QObject::connect(KDirWatch::self(), SIGNAL(created(QString)), q, SLOT(settingsFileChanged(QString)));
|
||||
QObject::connect(KDirWatch::self(), SIGNAL(dirty(QString)), q, SLOT(settingsFileChanged(QString)));
|
||||
}
|
||||
|
||||
~ThemePrivate()
|
||||
@ -249,6 +244,11 @@ public:
|
||||
ThemeSingleton()
|
||||
{
|
||||
self.d->isDefault = true;
|
||||
|
||||
//FIXME: if/when kconfig gets change notification, this will be unecessary
|
||||
KDirWatch::self()->addFile(KStandardDirs::locateLocal("config", ThemePrivate::themeRcFile));
|
||||
QObject::connect(KDirWatch::self(), SIGNAL(created(QString)), &self, SLOT(settingsFileChanged(QString)));
|
||||
QObject::connect(KDirWatch::self(), SIGNAL(dirty(QString)), &self, SLOT(settingsFileChanged(QString)));
|
||||
}
|
||||
|
||||
Theme self;
|
||||
@ -309,7 +309,6 @@ KPluginInfo::List Theme::listThemeInfo()
|
||||
|
||||
void ThemePrivate::settingsFileChanged(const QString &file)
|
||||
{
|
||||
kDebug() << file;
|
||||
if (file.endsWith(themeRcFile)) {
|
||||
config().config()->reparseConfiguration();
|
||||
q->settingsChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user