diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 28e9e490e4..7f7f281d05 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -291,7 +291,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec if (alloc_ptr != NULL) { allocatePlugin = (QObject* (*)(KConfig* conf, QWidget* parent))alloc_ptr; - pluginObject = static_cast(allocatePlugin( conf, pluginConfigWidget )); + pluginObject = (QObject*)(allocatePlugin( conf, pluginConfigWidget )); // connect required signals and slots together... connect( pluginObject, SIGNAL(changed()), this, SLOT(slotSelectionChanged()) ); diff --git a/kcmkwin/kwindecoration/kwindecoration.h b/kcmkwin/kwindecoration/kwindecoration.h index 2396ebe425..924f6d4c60 100644 --- a/kcmkwin/kwindecoration/kwindecoration.h +++ b/kcmkwin/kwindecoration/kwindecoration.h @@ -91,7 +91,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface ButtonSource* buttonSource; // Page 3 - QWidget* pluginObject; + QObject* pluginObject; QLabel* noPluginSettings; QString currentLibraryName; QString oldLibraryName;