Remove nasty static_cast<QWidget*>(QObject*) which was creating the crashes.

CCMAIL: 61140-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=239860
This commit is contained in:
Karol Szwed 2003-07-29 13:12:39 +00:00
parent 7c62ae8bce
commit a33e94d36c
2 changed files with 2 additions and 2 deletions

View file

@ -291,7 +291,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec
if (alloc_ptr != NULL) if (alloc_ptr != NULL)
{ {
allocatePlugin = (QObject* (*)(KConfig* conf, QWidget* parent))alloc_ptr; allocatePlugin = (QObject* (*)(KConfig* conf, QWidget* parent))alloc_ptr;
pluginObject = static_cast<QWidget*>(allocatePlugin( conf, pluginConfigWidget )); pluginObject = (QObject*)(allocatePlugin( conf, pluginConfigWidget ));
// connect required signals and slots together... // connect required signals and slots together...
connect( pluginObject, SIGNAL(changed()), this, SLOT(slotSelectionChanged()) ); connect( pluginObject, SIGNAL(changed()), this, SLOT(slotSelectionChanged()) );

View file

@ -91,7 +91,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface
ButtonSource* buttonSource; ButtonSource* buttonSource;
// Page 3 // Page 3
QWidget* pluginObject; QObject* pluginObject;
QLabel* noPluginSettings; QLabel* noPluginSettings;
QString currentLibraryName; QString currentLibraryName;
QString oldLibraryName; QString oldLibraryName;