QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Functions
qgslayoutguiutils.cpp File Reference
#include "qgslayoutguiutils.h"
#include "qgsgui.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 "qgslayoutitemelevationprofile.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 "qgslayoutelevationprofilewidget.h"
#include "qgsmapcanvas.h"
#include "qgsplot.h"
#include "qgsfontutils.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 60 of file qgslayoutguiutils.cpp.