Warn that calling virtuals in a base constructor won't have the intended effect

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677452
This commit is contained in:
Will Stephenson 2007-06-19 07:17:50 +00:00
parent 9634f494c9
commit 4d6c186bac
2 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,7 @@ DataEngine::DataEngine(QObject* parent)
{ {
connect(d->updateTimer, SIGNAL(timeout()), this, SLOT(checkForUpdates())); connect(d->updateTimer, SIGNAL(timeout()), this, SLOT(checkForUpdates()));
//FIXME: we should delay this call; to when is the question. //FIXME: we should delay this call; to when is the question.
//Update DataEngine::init() api docu when fixed
init(); init();
} }

View File

@ -174,6 +174,8 @@ class PLASMA_EXPORT DataEngine : public QObject
* method is called the DataEngine is fully constructed and ready to be * method is called the DataEngine is fully constructed and ready to be
* used. This method should be reimplemented by DataEngine subclasses * used. This method should be reimplemented by DataEngine subclasses
* which have the need to perform a startup routine. * which have the need to perform a startup routine.
*
* NOTE: Due to a bug in the DataEngine base implementation this method is never called.
**/ **/
virtual void init(); virtual void init();