QGIS API Documentation  3.17.0-Master (3b262f2a79)
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 "qgslayoutmarkerwidget.h"
#include "qgslayoutitemmap.h"
#include "qgslayoutitempolygon.h"
#include "qgslayoutitempolyline.h"
#include "qgslayoutitemmarker.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:

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 57 of file qgslayoutguiutils.cpp.