##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QTreeView.h
97 lines | 4.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTREEVIEW_H
#define PYTHONQTWRAPPER_QTREEVIEW_H
#include <qtreeview.h>
#include <QObject>
#include <QVariant>
#include <qabstractitemdelegate.h>
#include <qabstractitemmodel.h>
#include <qaction.h>
#include <qbitmap.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qevent.h>
#include <qfont.h>
#include <qheaderview.h>
#include <qicon.h>
#include <qinputcontext.h>
#include <qitemselectionmodel.h>
#include <qkeysequence.h>
#include <qlayout.h>
#include <qlist.h>
#include <qlocale.h>
#include <qobject.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qpainter.h>
#include <qpalette.h>
#include <qpoint.h>
#include <qrect.h>
#include <qregion.h>
#include <qscrollbar.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qtreeview.h>
#include <qwidget.h>
class PythonQtWrapper_QTreeView : public QObject
{ Q_OBJECT
public:
public slots:
QTreeView* new_QTreeView(QWidget* parent = 0);
void delete_QTreeView(QTreeView* obj) { delete obj; }
bool allColumnsShowFocus(QTreeView* theWrappedObject) const;
int autoExpandDelay(QTreeView* theWrappedObject) const;
int columnAt(QTreeView* theWrappedObject, int x) const;
int columnViewportPosition(QTreeView* theWrappedObject, int column) const;
int columnWidth(QTreeView* theWrappedObject, int column) const;
void doItemsLayout(QTreeView* theWrappedObject);
bool expandsOnDoubleClick(QTreeView* theWrappedObject) const;
QHeaderView* header(QTreeView* theWrappedObject) const;
int indentation(QTreeView* theWrappedObject) const;
QModelIndex indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const;
QModelIndex indexAt(QTreeView* theWrappedObject, const QPoint& p) const;
QModelIndex indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const;
bool isAnimated(QTreeView* theWrappedObject) const;
bool isColumnHidden(QTreeView* theWrappedObject, int column) const;
bool isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const;
bool isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const;
bool isHeaderHidden(QTreeView* theWrappedObject) const;
bool isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const;
bool isSortingEnabled(QTreeView* theWrappedObject) const;
bool itemsExpandable(QTreeView* theWrappedObject) const;
void keyboardSearch(QTreeView* theWrappedObject, const QString& search);
void reset(QTreeView* theWrappedObject);
bool rootIsDecorated(QTreeView* theWrappedObject) const;
void scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible);
void setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable);
void setAnimated(QTreeView* theWrappedObject, bool enable);
void setAutoExpandDelay(QTreeView* theWrappedObject, int delay);
void setColumnHidden(QTreeView* theWrappedObject, int column, bool hide);
void setColumnWidth(QTreeView* theWrappedObject, int column, int width);
void setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand);
void setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable);
void setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span);
void setHeader(QTreeView* theWrappedObject, QHeaderView* header);
void setHeaderHidden(QTreeView* theWrappedObject, bool hide);
void setIndentation(QTreeView* theWrappedObject, int i);
void setItemsExpandable(QTreeView* theWrappedObject, bool enable);
void setModel(QTreeView* theWrappedObject, QAbstractItemModel* model);
void setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index);
void setRootIsDecorated(QTreeView* theWrappedObject, bool show);
void setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide);
void setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel);
void setSortingEnabled(QTreeView* theWrappedObject, bool enable);
void setUniformRowHeights(QTreeView* theWrappedObject, bool uniform);
void setWordWrap(QTreeView* theWrappedObject, bool on);
void sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order);
bool uniformRowHeights(QTreeView* theWrappedObject) const;
QRect visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const;
bool wordWrap(QTreeView* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTREEVIEW_H