Remove some dead code
This commit is contained in:
parent
ac1aba0f2a
commit
1c4f14c177
@ -92,8 +92,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
|
||||
}
|
||||
installEventFilter(qApp);
|
||||
|
||||
configWatcher = KDirWatch::self();
|
||||
const QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QStringLiteral("/plasmarc");
|
||||
const QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + themeRcFile;
|
||||
KDirWatch::self()->addFile(configLocation);
|
||||
|
||||
connect(KDirWatch::self(), &KDirWatch::dirty, this, &ThemePrivate::settingsFileChanged);
|
||||
@ -111,7 +110,7 @@ ThemePrivate::~ThemePrivate()
|
||||
KConfigGroup &ThemePrivate::config()
|
||||
{
|
||||
if (!cfg.isValid()) {
|
||||
QString groupName = "Theme-plasma-shell";
|
||||
QString groupName = "Theme";
|
||||
|
||||
if (!useGlobal) {
|
||||
QString app = QCoreApplication::applicationName();
|
||||
@ -132,28 +131,6 @@ KConfigGroup &ThemePrivate::config()
|
||||
}
|
||||
|
||||
|
||||
void ThemePrivate::configDirty(const QString &path)
|
||||
{
|
||||
qDebug() << "config dirty: " << path;
|
||||
//config()->reparseConfiguration();
|
||||
settingsChanged();
|
||||
}
|
||||
|
||||
void ThemePrivate::configCreated(const QString& path)
|
||||
{
|
||||
qDebug() << "config created: " << path;
|
||||
settingsChanged();
|
||||
emit themeChanged();
|
||||
}
|
||||
|
||||
void ThemePrivate::configDeleted(const QString& path)
|
||||
{
|
||||
qDebug() << "config deleted: " << path;
|
||||
//settingsChanged();
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool ThemePrivate::useCache()
|
||||
{
|
||||
if (cacheTheme && !pixmapCache) {
|
||||
|
@ -94,10 +94,6 @@ public Q_SLOTS:
|
||||
void notifyOfChanged();
|
||||
void settingsChanged();
|
||||
|
||||
void configDirty(const QString &path);
|
||||
void configCreated(const QString &path);
|
||||
void configDeleted(const QString &path);
|
||||
|
||||
Q_SIGNALS:
|
||||
void themeChanged();
|
||||
void defaultFontChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user