Skip to content

Commit 5c69400

Browse files
committedSep 21, 2015
Add warning to advanced settings dialog
1 parent 591942e commit 5c69400

File tree

1 file changed

+78
-19
lines changed

1 file changed

+78
-19
lines changed
 

‎src/ui/qgsoptionsbase.ui

Lines changed: 78 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<item>
300300
<widget class="QStackedWidget" name="mOptionsStackedWidget">
301301
<property name="currentIndex">
302-
<number>14</number>
302+
<number>0</number>
303303
</property>
304304
<widget class="QWidget" name="mOptionsPageGeneral">
305305
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -1359,8 +1359,8 @@
13591359
<rect>
13601360
<x>0</x>
13611361
<y>0</y>
1362-
<width>626</width>
1363-
<height>545</height>
1362+
<width>539</width>
1363+
<height>510</height>
13641364
</rect>
13651365
</property>
13661366
<layout class="QVBoxLayout" name="verticalLayout_27">
@@ -2405,8 +2405,8 @@
24052405
<rect>
24062406
<x>0</x>
24072407
<y>0</y>
2408-
<width>626</width>
2409-
<height>545</height>
2408+
<width>168</width>
2409+
<height>282</height>
24102410
</rect>
24112411
</property>
24122412
<layout class="QHBoxLayout" name="horizontalLayout_46">
@@ -2510,8 +2510,8 @@
25102510
<rect>
25112511
<x>0</x>
25122512
<y>0</y>
2513-
<width>626</width>
2514-
<height>545</height>
2513+
<width>521</width>
2514+
<height>361</height>
25152515
</rect>
25162516
</property>
25172517
<layout class="QVBoxLayout" name="verticalLayout_25">
@@ -3343,8 +3343,8 @@
33433343
<rect>
33443344
<x>0</x>
33453345
<y>0</y>
3346-
<width>626</width>
3347-
<height>545</height>
3346+
<width>537</width>
3347+
<height>325</height>
33483348
</rect>
33493349
</property>
33503350
<layout class="QVBoxLayout" name="verticalLayout_39">
@@ -3548,7 +3548,7 @@
35483548
<rect>
35493549
<x>0</x>
35503550
<y>0</y>
3551-
<width>613</width>
3551+
<width>516</width>
35523552
<height>689</height>
35533553
</rect>
35543554
</property>
@@ -4048,8 +4048,8 @@
40484048
<rect>
40494049
<x>0</x>
40504050
<y>0</y>
4051-
<width>626</width>
4052-
<height>545</height>
4051+
<width>462</width>
4052+
<height>386</height>
40534053
</rect>
40544054
</property>
40554055
<layout class="QVBoxLayout" name="verticalLayout_6">
@@ -4187,7 +4187,7 @@
41874187
<rect>
41884188
<x>0</x>
41894189
<y>0</y>
4190-
<width>613</width>
4190+
<width>561</width>
41914191
<height>690</height>
41924192
</rect>
41934193
</property>
@@ -4433,8 +4433,8 @@
44334433
<rect>
44344434
<x>0</x>
44354435
<y>0</y>
4436-
<width>626</width>
4437-
<height>545</height>
4436+
<width>303</width>
4437+
<height>240</height>
44384438
</rect>
44394439
</property>
44404440
<layout class="QVBoxLayout" name="verticalLayout_32">
@@ -4532,7 +4532,7 @@
45324532
<rect>
45334533
<x>0</x>
45344534
<y>0</y>
4535-
<width>613</width>
4535+
<width>552</width>
45364536
<height>766</height>
45374537
</rect>
45384538
</property>
@@ -4901,9 +4901,36 @@
49014901
<property name="title">
49024902
<string>Advanced Settings Editor</string>
49034903
</property>
4904-
<layout class="QGridLayout" name="gridLayout_19">
4905-
<item row="0" column="0">
4906-
<widget class="QgsSettingsTree" name="mAdvancedSettingsEditor" native="true"/>
4904+
<layout class="QVBoxLayout" name="verticalLayout_42">
4905+
<item>
4906+
<widget class="QWidget" name="mAdvancedSettingsWarning" native="true">
4907+
<layout class="QVBoxLayout" name="verticalLayout_44">
4908+
<item>
4909+
<widget class="QLabel" name="label_44">
4910+
<property name="text">
4911+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Changes on this page are dangerous and can break your QGIS installation in various ways. Any change you make is applied immediately, without clicking the &lt;span style=&quot; font-style:italic;&quot;&gt;ok&lt;/span&gt; button.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
4912+
</property>
4913+
<property name="wordWrap">
4914+
<bool>true</bool>
4915+
</property>
4916+
</widget>
4917+
</item>
4918+
<item>
4919+
<widget class="QPushButton" name="mAdvancedSettingsEnableButton">
4920+
<property name="text">
4921+
<string>I will be careful, I promise!</string>
4922+
</property>
4923+
</widget>
4924+
</item>
4925+
</layout>
4926+
</widget>
4927+
</item>
4928+
<item>
4929+
<widget class="QgsSettingsTree" name="mAdvancedSettingsEditor" native="true">
4930+
<property name="visible">
4931+
<bool>false</bool>
4932+
</property>
4933+
</widget>
49074934
</item>
49084935
</layout>
49094936
</widget>
@@ -5246,5 +5273,37 @@
52465273
</hint>
52475274
</hints>
52485275
</connection>
5276+
<connection>
5277+
<sender>mAdvancedSettingsEnableButton</sender>
5278+
<signal>clicked()</signal>
5279+
<receiver>mAdvancedSettingsEditor</receiver>
5280+
<slot>show()</slot>
5281+
<hints>
5282+
<hint type="sourcelabel">
5283+
<x>481</x>
5284+
<y>261</y>
5285+
</hint>
5286+
<hint type="destinationlabel">
5287+
<x>481</x>
5288+
<y>412</y>
5289+
</hint>
5290+
</hints>
5291+
</connection>
5292+
<connection>
5293+
<sender>mAdvancedSettingsEnableButton</sender>
5294+
<signal>clicked()</signal>
5295+
<receiver>mAdvancedSettingsWarning</receiver>
5296+
<slot>hide()</slot>
5297+
<hints>
5298+
<hint type="sourcelabel">
5299+
<x>481</x>
5300+
<y>261</y>
5301+
</hint>
5302+
<hint type="destinationlabel">
5303+
<x>481</x>
5304+
<y>164</y>
5305+
</hint>
5306+
</hints>
5307+
</connection>
52495308
</connections>
52505309
</ui>

0 commit comments

Comments
 (0)
Please sign in to comment.