add: allowedTypes.insert( "QTextEdit", i18n( "Text" ) );
context:     PageItem( QListView *parent, const QString &path )      : QCheckListItem( parent, "", QCheckListItem::CheckBox ),        mPath( path ), mIsActive( false )    {      mName = path.mid( path.findRev( '/' ) + 1 );      QWidget *wdg = QWidgetFactory::create( mPath, 0, 0 );      if ( wdg ) {        setText( 0, wdg->caption() );        QPixmap pm = QPixmap::grabWidget( wdg );        QImage img = pm.convertToImage().smoothScale( 300, 300, QImage::ScaleMin );        mPreview = img;        QObjectList *list = wdg->queryList( "QWidget" );        QObjectListIt it( *list );        QMap<QString, QString> allowedTypes;        allowedTypes.insert( "QLineEdit", i18n( "Text" ) );        allowedTypes.insert( "QSpinBox", i18n( "Numeric Value" ) );        allowedTypes.insert( "QCheckBox", i18n( "Boolean" ) );        allowedTypes.insert( "QComboBox", i18n( "Selection" ) );        allowedTypes.insert( "QDateTimeEdit", i18n( "Date & Time" ) );        allowedTypes.insert( "KLineEdit", i18n( "Text" ) );        allowedTypes.insert( "KDateTimeWidget", i18n( "Date & Time" ) );        allowedTypes.insert( "KDatePicker", i18n( "Date" ) );        while ( it.current() ) {          if ( allowedTypes.find( it.current()->className() ) != allowedTypes.end() ) {            QString name = it.current()->name();            if ( name.startsWith( "X_" ) ) {              new QListViewItem( this, name,                                 allowedTypes[ it.current()->className() ],                                 it.current()->className(),                                 QWhatsThis::textFor( static_cast<QWidget*>( it.current() ) ) );            }          }          ++it;        }        delete list;      } else        delete wdg;    }