-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE][layouts] Add setting for label margin for map items
This setting allows per-map control of how close labels are permitted to be placed to the map item's edges. Sizes can be set using mm/inches/pixels/etc, and data defined label margins are allowed. Fixes #10314
- Loading branch information
1 parent
35855b8
commit ed25a3e
Showing
11 changed files
with
288 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>QgsLayoutMapLabelingWidgetBase</class> | ||
<widget class="QWidget" name="QgsLayoutMapLabelingWidgetBase"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>326</width> | ||
<height>424</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Map Options</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QgsCollapsibleGroupBoxBasic" name="qgsCollapsibleGroupBoxBasic"> | ||
<property name="title"> | ||
<string>Label Settings</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout_6" columnstretch="0,0,0,0"> | ||
<item row="3" column="0" colspan="2"> | ||
<widget class="QLabel" name="label_10"> | ||
<property name="text"> | ||
<string>of map edges</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0" colspan="2"> | ||
<widget class="QgsDoubleSpinBox" name="mLabelBoundarySpinBox"> | ||
<property name="prefix"> | ||
<string/> | ||
</property> | ||
<property name="minimum"> | ||
<double>0.000000000000000</double> | ||
</property> | ||
<property name="maximum"> | ||
<double>9999.000000000000000</double> | ||
</property> | ||
<property name="value"> | ||
<double>0.000000000000000</double> | ||
</property> | ||
<property name="showClearButton" stdset="0"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0" colspan="2"> | ||
<widget class="QLabel" name="label_8"> | ||
<property name="text"> | ||
<string>Avoid placing labels within</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="2"> | ||
<widget class="QgsLayoutUnitsComboBox" name="mLabelBoundaryUnitsCombo"/> | ||
</item> | ||
<item row="2" column="3"> | ||
<widget class="QgsPropertyOverrideButton" name="mLabelMarginDDBtn"> | ||
<property name="text"> | ||
<string>…</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
<layoutdefault spacing="6" margin="11"/> | ||
<customwidgets> | ||
<customwidget> | ||
<class>QgsCollapsibleGroupBoxBasic</class> | ||
<extends>QGroupBox</extends> | ||
<header>qgscollapsiblegroupbox.h</header> | ||
<container>1</container> | ||
</customwidget> | ||
<customwidget> | ||
<class>QgsDoubleSpinBox</class> | ||
<extends>QDoubleSpinBox</extends> | ||
<header>qgsdoublespinbox.h</header> | ||
</customwidget> | ||
<customwidget> | ||
<class>QgsPropertyOverrideButton</class> | ||
<extends>QToolButton</extends> | ||
<header>qgspropertyoverridebutton.h</header> | ||
</customwidget> | ||
<customwidget> | ||
<class>QgsLayoutUnitsComboBox</class> | ||
<extends>QComboBox</extends> | ||
<header>qgslayoutunitscombobox.h</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
Oops, something went wrong.