QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgslayoutguiutils.cpp File Reference
Include dependency graph for qgslayoutguiutils.cpp:

Go to the source code of this file.

Functions

QgsLayoutItemMapfindSensibleDefaultLinkedMapItem (QgsLayoutItem *referenceItem)
 Attempts to find the best guess at a map item to link referenceItem to, by:

Function Documentation

◆ findSensibleDefaultLinkedMapItem()

QgsLayoutItemMap * findSensibleDefaultLinkedMapItem ( QgsLayoutItem * referenceItem)

Attempts to find the best guess at a map item to link referenceItem to, by:

  • Prioritizing a selected map
  • If no selection, prioritizing the topmost map the item was drawn over
  • If still none, use the layout's reference map (or biggest map)

Definition at line 63 of file qgslayoutguiutils.cpp.