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;
84 void setCurrentLayout(
QgsLayout *layout );
87 void keyPressEvent( QKeyEvent *event )
override;
91 void showContextMenu( QPoint point );
94 void updateSelection();
104 bool mUpdatingSelection =
false;
105 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.