Go to the documentation of this file.00001
00004 #ifndef BPSTREEWIDGET_H
00005 #define BPSTREEWIDGET_H
00006
00007 #include "bpsgui_global.h"
00008 #include <QTreeWidget>
00009
00018 class BPSGUI_EXPORT BpsTreeWidget : public QTreeWidget
00019 {
00020 Q_OBJECT
00021 BPS_PRIVATE(BpsTreeWidget)
00022
00023 public:
00024
00028 BpsTreeWidget(QWidget * aParent = 0);
00029
00030 virtual ~BpsTreeWidget();
00031
00035 virtual QSize sizeHint() const;
00036
00041 void setSizeHint(const QSize& aSize);
00042
00046 QVariant saveHeaderState();
00047
00052 void restoreHeaderState(const QVariant& aData);
00053
00054 signals:
00055
00060 void focusInOutEvent(bool aFocusIn);
00061
00067 void contextMenuRequested(const QPoint& aPosition, const QModelIndex& aIndex);
00068
00070 protected:
00071 virtual void focusInEvent(QFocusEvent* aEvent);
00072 virtual void focusOutEvent (QFocusEvent* aEvent);
00073 virtual void contextMenuEvent(QContextMenuEvent* aEvent);
00074 virtual void keyPressEvent(QKeyEvent* aEvent);
00076 };
00077
00078 #endif // BPSTREEWIDGET_H