##// 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_QToolBox.h
61 lines | 2.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTOOLBOX_H
#define PYTHONQTWRAPPER_QTOOLBOX_H
#include <qtoolbox.h>
#include <QObject>
#include <QVariant>
#include <qaction.h>
#include <qbitmap.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qevent.h>
#include <qfont.h>
#include <qicon.h>
#include <qinputcontext.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 <qsize.h>
#include <qsizepolicy.h>
#include <qstyle.h>
#include <qtoolbox.h>
#include <qwidget.h>
class PythonQtWrapper_QToolBox : public QObject
{ Q_OBJECT
public:
public slots:
QToolBox* new_QToolBox(QWidget* parent = 0, Qt::WindowFlags f = 0);
void delete_QToolBox(QToolBox* obj) { delete obj; }
int addItem(QToolBox* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& text);
int addItem(QToolBox* theWrappedObject, QWidget* widget, const QString& text);
int count(QToolBox* theWrappedObject) const;
int currentIndex(QToolBox* theWrappedObject) const;
QWidget* currentWidget(QToolBox* theWrappedObject) const;
int indexOf(QToolBox* theWrappedObject, QWidget* widget) const;
int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& text);
int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QString& text);
bool isItemEnabled(QToolBox* theWrappedObject, int index) const;
QIcon itemIcon(QToolBox* theWrappedObject, int index) const;
QString itemText(QToolBox* theWrappedObject, int index) const;
QString itemToolTip(QToolBox* theWrappedObject, int index) const;
void removeItem(QToolBox* theWrappedObject, int index);
void setItemEnabled(QToolBox* theWrappedObject, int index, bool enabled);
void setItemIcon(QToolBox* theWrappedObject, int index, const QIcon& icon);
void setItemText(QToolBox* theWrappedObject, int index, const QString& text);
void setItemToolTip(QToolBox* theWrappedObject, int index, const QString& toolTip);
QWidget* widget(QToolBox* theWrappedObject, int index) const;
};
#endif // PYTHONQTWRAPPER_QTOOLBOX_H