QGIS API Documentation  3.12.1-BucureČ™ti (121cc00ff0)
Functions
qgslayoutguiutils.cpp File Reference
#include "qgslayoutguiutils.h"
#include "qgsgui.h"
#include "qgslayout.h"
#include "qgslayoutitemguiregistry.h"
#include "qgslayoutitemregistry.h"
#include "qgslayoutviewrubberband.h"
#include "qgslayoutitemshape.h"
#include "qgslayoutmapwidget.h"
#include "qgslayoutshapewidget.h"
#include "qgslayoutitemmap.h"
#include "qgslayoutitempolygon.h"
#include "qgslayoutitempolyline.h"
#include "qgslayoutpolygonwidget.h"
#include "qgslayoutpolylinewidget.h"
#include "qgslayoutpicturewidget.h"
#include "qgslayoutitempicture.h"
#include "qgslayoutitemlabel.h"
#include "qgslayoutlabelwidget.h"
#include "qgslayoutitemlegend.h"
#include "qgslayoutitemscalebar.h"
#include "qgslayoutlegendwidget.h"
#include "qgslayoutframe.h"
#include "qgslayoutitemhtml.h"
#include "qgslayouthtmlwidget.h"
#include "qgslayoutscalebarwidget.h"
#include "qgslayoutitemattributetable.h"
#include "qgslayoutattributetablewidget.h"
#include "qgslayoutitemmanualtable.h"
#include "qgslayoutmanualtablewidget.h"
#include "qgsmapcanvas.h"
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: More...
 

Function Documentation

◆ findSensibleDefaultLinkedMapItem()

QgsLayoutItemMap* findSensibleDefaultLinkedMapItem ( QgsLayoutItem referenceItem)

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

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

Definition at line 54 of file qgslayoutguiutils.cpp.