#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Database table descriptor.
Definition: bpstable.h:19
This class adds some convenience to QTreeView:
Definition: bpstreeview.h:22
void dataGotChanged(const QModelIndex &aTopLeft, const QModelIndex &aBottomRight)
This signal is emitted when item data are changed in the model.
QVariant saveHeaderState()
void setTabColumns(BpsTable *aTable)
Define the list of tab columns when editing.
virtual QSize sizeHint() const
void setDragCopyEnabled(bool aEnable)
Enable drag/drop copying of items (Ctrl pressed).
void restoreHeaderState(const QVariant &aData)
Restores the header state from settings.
void currentItemChanged(const QModelIndex &aCurrent, const QModelIndex &aPrevious)
This signal is emitted when the current item changes.
void contextMenuRequested(const QPoint &aPosition, const QModelIndex &aIndex)
This signal is emitted when a context menu is requested on a item.
virtual QList< int > tabColumns() const
BpsTreeView(QWidget *aParent=nullptr)
void setTabColumns(const QList< int > &aTabColumns)
Define the list of tab columns when editing.
void setSizeHint(const QSize &aSize)
Define the size hint.
void focusInOutEvent(bool aFocusIn)
This signal is emitted when the widget gets or loses the focus.
void setDragMoveEnabled(bool aEnable)
Enable drag/drop moving of items.
virtual void focusInEvent(QFocusEvent *event) override
virtual void focusOutEvent(QFocusEvent *event) override
typedef KeyboardModifiers
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) override
virtual void keyPressEvent(QKeyEvent *event) override
virtual void mousePressEvent(QMouseEvent *event) override
virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override