Skip to content

Commit d59437a

Browse files
author
jef
committed
hide url exclusion for Qt<4.5
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13110 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 98c2803 commit d59437a

File tree

2 files changed

+44
-42
lines changed

2 files changed

+44
-42
lines changed

src/app/qgsoptions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
117117
}
118118

119119
#if QT_VERSION < 0x40500
120-
mExcludeUrlListWidget->setDisabled( true );
120+
grpUrlExclude->setHidden( true );
121121
#endif
122122

123123
// cache settings

src/ui/qgsoptionsbase.ui

+43-41
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<item row="0" column="1">
166166
<widget class="QStackedWidget" name="stackedWidget">
167167
<property name="currentIndex">
168-
<number>0</number>
168+
<number>7</number>
169169
</property>
170170
<widget class="QWidget" name="stackedWidgetPage1">
171171
<layout class="QGridLayout">
@@ -1294,7 +1294,7 @@
12941294
</property>
12951295
</widget>
12961296
</item>
1297-
<item row="0" column="1" colspan="5">
1297+
<item row="0" column="1" colspan="4">
12981298
<widget class="QLineEdit" name="leProxyHost"/>
12991299
</item>
13001300
<item row="1" column="0">
@@ -1304,7 +1304,7 @@
13041304
</property>
13051305
</widget>
13061306
</item>
1307-
<item row="1" column="1" colspan="5">
1307+
<item row="1" column="1" colspan="4">
13081308
<widget class="QLineEdit" name="leProxyPort"/>
13091309
</item>
13101310
<item row="2" column="0">
@@ -1314,7 +1314,7 @@
13141314
</property>
13151315
</widget>
13161316
</item>
1317-
<item row="2" column="1" colspan="5">
1317+
<item row="2" column="1" colspan="4">
13181318
<widget class="QLineEdit" name="leProxyUser">
13191319
<property name="toolTip">
13201320
<string>Leave this blank if no proxy username / password are required</string>
@@ -1328,7 +1328,7 @@
13281328
</property>
13291329
</widget>
13301330
</item>
1331-
<item row="3" column="1" colspan="5">
1331+
<item row="3" column="1" colspan="4">
13321332
<widget class="QLineEdit" name="leProxyPassword">
13331333
<property name="toolTip">
13341334
<string>Leave this blank if no proxy username / password are required</string>
@@ -1348,7 +1348,7 @@
13481348
<item row="4" column="1" colspan="2">
13491349
<widget class="QComboBox" name="mProxyTypeComboBox"/>
13501350
</item>
1351-
<item row="4" column="3" colspan="3">
1351+
<item row="4" column="3" colspan="2">
13521352
<spacer>
13531353
<property name="orientation">
13541354
<enum>Qt::Horizontal</enum>
@@ -1361,43 +1361,48 @@
13611361
</property>
13621362
</spacer>
13631363
</item>
1364-
<item row="5" column="0" colspan="2">
1365-
<widget class="QLabel" name="mExcludeUrlsLabel">
1366-
<property name="text">
1364+
<item row="5" column="0" rowspan="2" colspan="5">
1365+
<widget class="QGroupBox" name="grpUrlExclude">
1366+
<property name="title">
13671367
<string>Exclude URLs (starting with):</string>
13681368
</property>
1369-
</widget>
1370-
</item>
1371-
<item row="5" column="2" colspan="2">
1372-
<widget class="QPushButton" name="mAddUrlPushButton">
1373-
<property name="text">
1374-
<string>Add</string>
1375-
</property>
1376-
</widget>
1377-
</item>
1378-
<item row="5" column="4">
1379-
<widget class="QPushButton" name="mRemoveUrlPushButton">
1380-
<property name="text">
1381-
<string>Remove</string>
1369+
<property name="flat">
1370+
<bool>true</bool>
13821371
</property>
1372+
<layout class="QGridLayout" name="gridLayout_5">
1373+
<item row="2" column="2">
1374+
<widget class="QPushButton" name="mRemoveUrlPushButton">
1375+
<property name="text">
1376+
<string>Remove</string>
1377+
</property>
1378+
</widget>
1379+
</item>
1380+
<item row="2" column="0">
1381+
<widget class="QPushButton" name="mAddUrlPushButton">
1382+
<property name="text">
1383+
<string>Add</string>
1384+
</property>
1385+
</widget>
1386+
</item>
1387+
<item row="0" column="0" colspan="4">
1388+
<widget class="QListWidget" name="mExcludeUrlListWidget"/>
1389+
</item>
1390+
<item row="2" column="1">
1391+
<spacer name="horizontalSpacer">
1392+
<property name="orientation">
1393+
<enum>Qt::Horizontal</enum>
1394+
</property>
1395+
<property name="sizeHint" stdset="0">
1396+
<size>
1397+
<width>40</width>
1398+
<height>20</height>
1399+
</size>
1400+
</property>
1401+
</spacer>
1402+
</item>
1403+
</layout>
13831404
</widget>
13841405
</item>
1385-
<item row="5" column="5">
1386-
<spacer>
1387-
<property name="orientation">
1388-
<enum>Qt::Horizontal</enum>
1389-
</property>
1390-
<property name="sizeHint" stdset="0">
1391-
<size>
1392-
<width>391</width>
1393-
<height>20</height>
1394-
</size>
1395-
</property>
1396-
</spacer>
1397-
</item>
1398-
<item row="6" column="0" colspan="6">
1399-
<widget class="QListWidget" name="mExcludeUrlListWidget"/>
1400-
</item>
14011406
</layout>
14021407
</widget>
14031408
</item>
@@ -1540,9 +1545,6 @@
15401545
<tabstop>leProxyUser</tabstop>
15411546
<tabstop>leProxyPassword</tabstop>
15421547
<tabstop>mProxyTypeComboBox</tabstop>
1543-
<tabstop>mAddUrlPushButton</tabstop>
1544-
<tabstop>mRemoveUrlPushButton</tabstop>
1545-
<tabstop>mExcludeUrlListWidget</tabstop>
15461548
<tabstop>buttonBox</tabstop>
15471549
</tabstops>
15481550
<resources>

0 commit comments

Comments
 (0)