mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
assure that the Dolphin KPart inside Konqueror gets updated when the settings are changed
svn path=/trunk/KDE/kdebase/apps/; revision=792496
This commit is contained in:
parent
e8970ac771
commit
03f4481bdf
|
@ -367,6 +367,11 @@ void DolphinPartBrowserExtension::paste()
|
|||
m_part->view()->paste();
|
||||
}
|
||||
|
||||
void DolphinPartBrowserExtension::reparseConfiguration()
|
||||
{
|
||||
m_part->view()->refresh();
|
||||
}
|
||||
|
||||
////
|
||||
|
||||
void DolphinPart::slotEditMimeType()
|
||||
|
|
|
@ -171,6 +171,7 @@ public Q_SLOTS:
|
|||
void cut();
|
||||
void copy();
|
||||
void paste();
|
||||
void reparseConfiguration();
|
||||
|
||||
private:
|
||||
DolphinPart* m_part;
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include <kpluginfactory.h>
|
||||
#include <kpluginloader.h>
|
||||
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
#include <QDir>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
@ -87,6 +89,7 @@ void DolphinConfigModule::save()
|
|||
foreach (ViewSettingsPageBase* page, m_pages) {
|
||||
page->applySettings();
|
||||
}
|
||||
reparseConfiguration();
|
||||
}
|
||||
|
||||
void DolphinConfigModule::defaults()
|
||||
|
@ -94,6 +97,13 @@ void DolphinConfigModule::defaults()
|
|||
foreach (ViewSettingsPageBase* page, m_pages) {
|
||||
page->restoreDefaults();
|
||||
}
|
||||
reparseConfiguration();
|
||||
}
|
||||
|
||||
void DolphinConfigModule::reparseConfiguration()
|
||||
{
|
||||
QDBusMessage message = QDBusMessage::createSignal("/KonqMain", "org.kde.Konqueror.Main", "reparseConfiguration");
|
||||
QDBusConnection::sessionBus().send(message);
|
||||
}
|
||||
|
||||
#include "kcmdolphin.moc"
|
||||
|
|
|
@ -38,6 +38,9 @@ public:
|
|||
virtual void save();
|
||||
virtual void defaults();
|
||||
|
||||
private:
|
||||
void reparseConfiguration();
|
||||
|
||||
private:
|
||||
QList<ViewSettingsPageBase*> m_pages;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue