Skip to content
Permalink
Browse files
Standardise margins on vector layer properties dialog
  • Loading branch information
nyalldawson committed Apr 13, 2017
1 parent f23d381 commit 7f065c786eb72c48413042142ea2a2a18396814a
Showing with 163 additions and 43 deletions.
  1. +1 −0 src/app/qgsvectorlayerproperties.cpp
  2. +26 −26 src/ui/qgsdiagrampropertiesbase.ui
  3. +136 −17 src/ui/qgsvectorlayerpropertiesbase.ui
@@ -293,6 +293,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
);

QString myStyle = QgsApplication::reportStyleSheet();
myStyle.append( QStringLiteral( "body { margin: 10px; }\n " ) );
teMetadataViewer->clear();
teMetadataViewer->document()->setDefaultStyleSheet( myStyle );
teMetadataViewer->setHtml( htmlMetadata() );
@@ -12,16 +12,16 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_8" stretch="0,1">
<property name="leftMargin">
<number>6</number>
<number>0</number>
</property>
<property name="topMargin">
<number>6</number>
<number>0</number>
</property>
<property name="rightMargin">
<number>6</number>
<number>0</number>
</property>
<property name="bottomMargin">
<number>6</number>
<number>0</number>
</property>
<item>
<widget class="QFrame" name="frameShowDiagrams">
@@ -303,8 +303,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<height>405</height>
<width>644</width>
<height>417</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
@@ -539,7 +539,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>618</width>
<width>340</width>
<height>484</height>
</rect>
</property>
@@ -1130,8 +1130,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<height>405</height>
<width>511</width>
<height>294</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_11">
@@ -1446,8 +1446,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<height>405</height>
<width>280</width>
<height>288</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_12">
@@ -1872,8 +1872,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<height>405</height>
<width>100</width>
<height>180</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -2091,8 +2091,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<height>405</height>
<width>324</width>
<height>131</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_12">
@@ -2175,12 +2175,6 @@
<header>qgsscrollarea.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsCollapsibleGroupBox</class>
<extends>QGroupBox</extends>
@@ -2193,6 +2187,17 @@
<header>qgsfieldexpressionwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsScaleRangeWidget</class>
<extends>QWidget</extends>
<header>qgsscalerangewidget.h</header>
</customwidget>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
@@ -2214,11 +2219,6 @@
<header>qgsunitselectionwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsScaleRangeWidget</class>
<extends>QWidget</extends>
<header>qgsscalerangewidget.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mDiagramTypeComboBox</tabstop>
@@ -298,11 +298,47 @@
</property>
<widget class="QWidget" name="mOptsPage_Information">
<layout class="QVBoxLayout" name="verticalLayout_5">
<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="QTextBrowser" name="teMetadataViewer">
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<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="QTextBrowser" name="teMetadataViewer">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
@@ -334,11 +370,23 @@
<rect>
<x>0</x>
<y>0</y>
<width>629</width>
<height>572</height>
<width>639</width>
<height>592</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_13">
<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="QgsCollapsibleGroupBox" name="mMetaDescriptionGrpBx">
<property name="title">
@@ -773,11 +821,23 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>644</width>
<height>522</height>
<width>653</width>
<height>536</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<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="QgsCollapsibleGroupBox" name="groupBox_6">
<property name="title">
@@ -870,7 +930,6 @@ border-radius: 2px;</string>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<zorder>label_5</zorder>
</widget>
</item>
<item>
@@ -1000,8 +1059,8 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>644</width>
<height>522</height>
<width>653</width>
<height>536</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_18">
@@ -1101,8 +1160,8 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>644</width>
<height>522</height>
<width>653</width>
<height>536</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_20">
@@ -1161,11 +1220,23 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>686</width>
<height>507</height>
<width>671</width>
<height>522</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_32">
<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="QgsCollapsibleGroupBox" name="mScaleVisibilityGroupBox">
<property name="title">
@@ -1394,6 +1465,18 @@ border-radius: 2px;</string>
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<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 row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
@@ -1497,8 +1580,8 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>30</height>
<width>653</width>
<height>536</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_21">
@@ -1563,8 +1646,8 @@ border-radius: 2px;</string>
<rect>
<x>0</x>
<y>0</y>
<width>199</width>
<height>123</height>
<width>653</width>
<height>536</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_23">
@@ -1707,6 +1790,18 @@ border-radius: 2px;</string>
</widget>
<widget class="QWidget" name="page">
<layout class="QVBoxLayout" name="verticalLayout_4">
<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="QGroupBox" name="groupBox_4">
<property name="title">
@@ -1727,6 +1822,18 @@ border-radius: 2px;</string>
</widget>
<widget class="QWidget" name="mOptsPage_Legend">
<layout class="QVBoxLayout" name="verticalLayout_8">
<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="QGroupBox" name="groupBox_3">
<property name="title">
@@ -1743,6 +1850,18 @@ border-radius: 2px;</string>
</widget>
<widget class="QWidget" name="mOptsPage_DataDependencies">
<layout class="QVBoxLayout" name="verticalLayout_29">
<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="QGroupBox" name="groupBox_5">
<property name="title">

0 comments on commit 7f065c7

Please sign in to comment.