src/gui/itemviews/qtreeview.cpp File Reference

#include "qtreeview.h"
#include <qheaderview.h>
#include <qitemdelegate.h>
#include <qapplication.h>
#include <qscrollbar.h>
#include <qpainter.h>
#include <qstack.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qevent.h>
#include <qpen.h>
#include <qdebug.h>
#include <private/qtreeview_p.h>
#include "moc_qtreeview.cpp"

Include dependency graph for qtreeview.cpp:

Go to the source code of this file.

Functions

static bool ancestorOf (QObject *widget, QObject *other)


Function Documentation

static bool ancestorOf ( QObject widget,
QObject other 
) [inline, static]

### move to QObject :)

Definition at line 1090 of file qtreeview.cpp.

References QObject::parent().

Referenced by QTreeView::drawRow().

01091 {
01092     for (QObject *parent = other; parent != 0; parent = parent->parent()) {
01093         if (parent == widget)
01094             return true;
01095     }
01096     return false;
01097 }

Here is the call graph for this function:


Generated on Thu Mar 15 13:24:05 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1