|
| ImportCoordinatesOverlay (QObject *const parent) |
|
ImportOverlayWidget * | buttonWidget () const |
|
| AbstractWidgetDelegateOverlay (QObject *const parent) |
| This class provides functionality for using a widget in an overlay.
|
|
| ItemDelegateOverlay (QObject *const parent=nullptr) |
|
virtual bool | acceptsDelegate (QAbstractItemDelegate *) const |
|
QAbstractItemDelegate * | delegate () const |
|
virtual void | mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index) |
| Only these two methods are implemented as virtual methods.
|
|
virtual void | paint (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) |
|
void | setDelegate (QAbstractItemDelegate *delegate) |
|
void | setView (QAbstractItemView *view) |
|
QAbstractItemView * | view () const |
|
|
bool | checkIndex (const QModelIndex &index) const override |
|
QWidget * | createWidget () override |
| Create your widget here.
|
|
void | setActive (bool active) override |
| If active is true, this will call createWidget(), initialize the widget for use, and setup connections for the virtual slots.
|
|
void | slotEntered (const QModelIndex &index) override |
| Default implementation shows the widget iff the index is valid and checkIndex returns true.
|
|
void | updatePosition () |
|
void | visualChange () override |
| Called when any change from the delegate occurs - when the overlay is installed, when size hints, styles or fonts change.
|
|
bool | checkIndexOnEnter (const QModelIndex &index) const |
| Utility method called from slotEntered.
|
|
bool | eventFilter (QObject *obj, QEvent *event) override |
|
virtual void | hide () |
| Called when the widget shall be hidden (mouse cursor left index, viewport, uninstalled etc.).
|
|
virtual QString | notifyMultipleMessage (const QModelIndex &, int number) |
|
QWidget * | parentWidget () const |
|
virtual void | viewportLeaveEvent (QObject *obj, QEvent *event) |
| Called when a QEvent::Leave of the viewport is received.
|
|
virtual void | widgetEnterEvent () |
| Called when a QEvent::Enter resp.
|
|
void | widgetEnterNotifyMultiple (const QModelIndex &index) |
| A sample implementation for above methods.
|
|
virtual void | widgetLeaveEvent () |
|
void | widgetLeaveNotifyMultiple () |
|
QList< QModelIndex > | affectedIndexes (const QModelIndex &index) const |
|
bool | affectsMultiple (const QModelIndex &index) const |
| For the context that an overlay can affect multiple items: Assuming the currently overlayed index is given.
|
|
int | numberOfAffectedIndexes (const QModelIndex &index) const |
|
bool | viewHasMultiSelection () const |
| Utility method.
|
|