summaryrefslogtreecommitdiffabout
path: root/microkde/kdeui/kcmodule.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kdeui/kcmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdeui/kcmodule.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/microkde/kdeui/kcmodule.cpp b/microkde/kdeui/kcmodule.cpp
index 915cd0f..f646db3 100644
--- a/microkde/kdeui/kcmodule.cpp
+++ b/microkde/kdeui/kcmodule.cpp
@@ -34,7 +34,8 @@ public:
bool _useRootOnlyMsg;
bool _hasOwnInstance;
+ KPrefs* _prefs;
};
-KCModule::KCModule(QWidget *parent, const char *name, const QStringList &)
+KCModule::KCModule(KPrefs* prefs, QWidget *parent, const char *name, const QStringList &)
: QWidget(parent, name), _btn(Help|Default|Apply)
{
@@ -42,5 +43,6 @@ KCModule::KCModule(QWidget *parent, const char *name, const QStringList &)
d = new KCModulePrivate;
d->_useRootOnlyMsg = true;
-/*US
+ d->_prefs = prefs;
+/*US
d->_instance = new KInstance(name);
if (name && strlen(name)) {
@@ -49,5 +51,5 @@ KCModule::KCModule(QWidget *parent, const char *name, const QStringList &)
} else
d->_instance = new KInstance("kcmunnamed");
-*/
+*/
d->_hasOwnInstance = true;
//US KGlobal::setActiveInstance(this->instance());
@@ -72,5 +74,5 @@ KCModule::~KCModule()
if (d->_hasOwnInstance)
delete d->_instance;
-*/
+*/
delete d;
}
@@ -95,4 +97,10 @@ bool KCModule::useRootOnlyMsg() const
return d->_useRootOnlyMsg;
}
+
+KPrefs* KCModule::getPreferences()
+{
+ return d->_prefs;
+}
+
/*US
KInstance *KCModule::instance() const