Skip to content

Commit dfac996

Browse files
committed
Fix always disabled layout extent decoration widget
1 parent 082dafe commit dfac996

File tree

2 files changed

+12
-40
lines changed

2 files changed

+12
-40
lines changed

src/app/qgsdecorationlayoutextentdialog.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ QgsDecorationLayoutExtentDialog::QgsDecorationLayoutExtentDialog( QgsDecorationL
4040
QgsSettings settings;
4141
restoreGeometry( settings.value( "/Windows/DecorationLayoutExtent/geometry" ).toByteArray() );
4242

43-
connect( mCheckBoxLabelExtents, &QCheckBox::toggled, mButtonFontStyle, &QPushButton::setEnabled );
44-
mCheckBoxLabelExtents->setChecked( false );
45-
mButtonFontStyle->setEnabled( false );
46-
4743
updateGuiElements();
4844
connect( buttonBox->button( QDialogButtonBox::Apply ), &QAbstractButton::clicked, this, &QgsDecorationLayoutExtentDialog::apply );
4945

src/ui/qgsdecorationlayoutextentdialog.ui

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
</property>
2020
<item>
2121
<widget class="QGroupBox" name="grpEnable">
22+
<property name="enabled">
23+
<bool>true</bool>
24+
</property>
2225
<property name="title">
2326
<string>Show layout extents</string>
2427
</property>
@@ -31,6 +34,9 @@
3134
<layout class="QGridLayout" name="gridLayout">
3235
<item row="1" column="0">
3336
<widget class="QCheckBox" name="mCheckBoxLabelExtents">
37+
<property name="enabled">
38+
<bool>true</bool>
39+
</property>
3440
<property name="text">
3541
<string>Label extents</string>
3642
</property>
@@ -52,7 +58,7 @@
5258
<item row="0" column="0">
5359
<widget class="QLabel" name="mLineSymbolLabel">
5460
<property name="enabled">
55-
<bool>false</bool>
61+
<bool>true</bool>
5662
</property>
5763
<property name="text">
5864
<string>Symbol</string>
@@ -77,6 +83,9 @@
7783
</item>
7884
<item row="1" column="1">
7985
<widget class="QgsFontButton" name="mButtonFontStyle">
86+
<property name="enabled">
87+
<bool>true</bool>
88+
</property>
8089
<property name="sizePolicy">
8190
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
8291
<horstretch>0</horstretch>
@@ -91,7 +100,7 @@
91100
<item row="0" column="1">
92101
<widget class="QgsSymbolButton" name="mSymbolButton">
93102
<property name="enabled">
94-
<bool>false</bool>
103+
<bool>true</bool>
95104
</property>
96105
<property name="sizePolicy">
97106
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
@@ -143,38 +152,5 @@
143152
<tabstop>buttonBox</tabstop>
144153
</tabstops>
145154
<resources/>
146-
<connections>
147-
<connection>
148-
<sender>grpEnable</sender>
149-
<signal>toggled(bool)</signal>
150-
<receiver>mLineSymbolLabel</receiver>
151-
<slot>setEnabled(bool)</slot>
152-
<hints>
153-
<hint type="sourcelabel">
154-
<x>146</x>
155-
<y>47</y>
156-
</hint>
157-
<hint type="destinationlabel">
158-
<x>108</x>
159-
<y>43</y>
160-
</hint>
161-
</hints>
162-
</connection>
163-
<connection>
164-
<sender>grpEnable</sender>
165-
<signal>toggled(bool)</signal>
166-
<receiver>mLineSymbolLabel</receiver>
167-
<slot>setEnabled(bool)</slot>
168-
<hints>
169-
<hint type="sourcelabel">
170-
<x>146</x>
171-
<y>47</y>
172-
</hint>
173-
<hint type="destinationlabel">
174-
<x>35</x>
175-
<y>43</y>
176-
</hint>
177-
</hints>
178-
</connection>
179-
</connections>
155+
<connections/>
180156
</ui>

0 commit comments

Comments
 (0)