Kexi API Documentation (2.0 alpha)

formeditor/utils.h File Reference

#include <qptrlist.h>
#include <qwidget.h>

Go to the source code of this file.

Namespaces

namespace  KFormDesigner

Typedefs

typedef QPtrList< QWidgetWidgetList
 A list of widget pointers.
typedef QPtrListIterator<
QWidget
WidgetListIterator
 An iterator for WidgetList.

Functions

KFORMEDITOR_EXPORT void removeChildrenFromList (WidgetList &list)
KFORMEDITOR_EXPORT void installRecursiveEventFilter (QObject *object, QObject *container)
 Helper used to temporary disable keyboard and mouse events.
KFORMEDITOR_EXPORT void removeRecursiveEventFilter (QObject *object, QObject *container)
KFORMEDITOR_EXPORT void setRecursiveCursor (QWidget *w, Form *form)
KFORMEDITOR_EXPORT QSize getSizeFromChildren (QWidget *widget, const char *inheritClass="QWidget")


Typedef Documentation

typedef QPtrList<QWidget> KFormDesigner::WidgetList
 

A list of widget pointers.

Definition at line 28 of file formeditor/utils.h.

typedef QPtrListIterator<QWidget> KFormDesigner::WidgetListIterator
 

An iterator for WidgetList.

Definition at line 34 of file formeditor/utils.h.


Function Documentation

KFORMEDITOR_EXPORT QSize KFormDesigner::getSizeFromChildren QWidget widget,
const char *  inheritClass = "QWidget"
 

Returns:
the size of w children. This can be used eg to get widget's sizeHint.

Referenced by KFDTabWidget::sizeHint().

KFORMEDITOR_EXPORT void KFormDesigner::installRecursiveEventFilter QObject *  object,
QObject *  container
 

Helper used to temporary disable keyboard and mouse events.

This helper function install an event filter on object and all of its children, directed to container. This is necessary to filter events for composed widgets.

Definition at line 125 of file kexicsvimportdialog.cpp.

References KFormDesigner::installRecursiveEventFilter().

Referenced by KFormDesigner::DesignTimeDynamicChildWidgetHandler::childWidgetAdded(), KFormDesigner::EventEater::EventEater(), installRecursiveEventFilter(), KexiCSVImportDialog::KexiCSVImportDialog(), KFormDesigner::installRecursiveEventFilter(), and KexiDBSubForm::setFormName().

KFORMEDITOR_EXPORT void KFormDesigner::removeChildrenFromList WidgetList list  ) 
 

This function is used to remove all the child widgets from a list, and keep only the "toplevel" ones.

Referenced by KFormDesigner::Form::commonParentContainer(), KFormDesigner::FormManager::copyWidget(), and KFormDesigner::DeleteWidgetCommand::DeleteWidgetCommand().

KFORMEDITOR_EXPORT void KFormDesigner::removeRecursiveEventFilter QObject *  object,
QObject *  container
 

This helper function removes an event filter installed before on object and all of its children. This is necessary to filter events for composed widgets.

Referenced by KFormDesigner::removeRecursiveEventFilter(), and KFormDesigner::EventEater::~EventEater().

KFORMEDITOR_EXPORT void KFormDesigner::setRecursiveCursor QWidget w,
Form *  form
 

Referenced by KFormDesigner::WidgetFactory::resetEditor().

KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:35 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003