16#ifndef QGSLAYOUTITEMSLISTVIEW_H
17#define QGSLAYOUTITEMSLISTVIEW_H
25#include <QSortFilterProxyModel>
49 QgsLayoutItem *itemFromIndex(
const QModelIndex &index )
const;
51 QModelIndex indexForItem(
QgsLayoutItem *item,
const int column = 0 )
const;
52 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
56 void setSelected(
const QModelIndex &index );
59 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
83 void setCurrentLayout(
QgsLayout *layout );
86 void keyPressEvent( QKeyEvent *event )
override;
90 void showContextMenu( QPoint point );
93 void updateSelection();
102 bool mUpdatingSelection =
false;
103 bool mUpdatingFromView =
false;
A common interface for layout designer dialogs and widgets.
Base class for graphical items within a QgsLayout.
Model for the layout items list view.
A list view for showing items in a layout.
A model for items attached to a layout.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.