File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ void QgsIdentifyResults::show()
264
264
QTreeWidgetItem *layItem = lstResults->topLevelItem ( 0 );
265
265
QTreeWidgetItem *featItem = layItem->child ( 0 );
266
266
267
- if ( layItem->childCount () == 1 )
267
+ if ( layItem->childCount () == 1 && QSettings (). value ( " /Map/identifyAutoFeatureForm " , false ). toBool () )
268
268
{
269
269
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( layItem->data ( 0 , Qt::UserRole ).value <QObject *>() );
270
270
if ( layer )
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
56
56
QSettings settings;
57
57
int identifyMode = settings.value ( " /Map/identifyMode" , 0 ).toInt ();
58
58
cmbIdentifyMode->setCurrentIndex ( cmbIdentifyMode->findData ( identifyMode ) );
59
+ cbxAutoFeatureForm->setChecked ( settings.value ( " /Map/identifyAutoFeatureForm" , false ).toBool () );
59
60
double identifyValue = settings.value ( " /Map/identifyRadius" , QGis::DEFAULT_IDENTIFY_RADIUS ).toDouble ();
60
61
QgsDebugMsg ( QString ( " Standard Identify radius setting read from settings file: %1" ).arg ( identifyValue ) );
61
62
spinBoxIdentifyValue->setValue ( identifyValue );
@@ -392,6 +393,7 @@ void QgsOptions::saveOptions()
392
393
393
394
// general settings
394
395
settings.setValue ( " /Map/identifyMode" , cmbIdentifyMode->itemData ( cmbIdentifyMode->currentIndex () ).toInt () );
396
+ settings.setValue ( " /Map/identifyAutoFeatureForm" , cbxAutoFeatureForm->isChecked () );
395
397
settings.setValue ( " /Map/identifyRadius" , spinBoxIdentifyValue->value () );
396
398
settings.setValue ( " /qgis/showLegendClassifiers" , cbxLegendClassifiers->isChecked () );
397
399
settings.setValue ( " /qgis/hideSplash" , cbxHideSplash->isChecked () );
Original file line number Diff line number Diff line change 6
6
<rect >
7
7
<x >0</x >
8
8
<y >0</y >
9
- <width >733 </width >
10
- <height >549 </height >
9
+ <width >722 </width >
10
+ <height >529 </height >
11
11
</rect >
12
12
</property >
13
13
<property name =" windowTitle" >
23
23
<item row =" 0" column =" 0" >
24
24
<widget class =" QTabWidget" name =" tabWidget" >
25
25
<property name =" currentIndex" >
26
- <number >7 </number >
26
+ <number >0 </number >
27
27
</property >
28
28
<widget class =" QWidget" name =" tabGeneral" >
29
29
<attribute name =" title" >
455
455
<property name =" margin" >
456
456
<number >11</number >
457
457
</property >
458
- <item row =" 2 " column =" 0" colspan =" 2" >
458
+ <item row =" 3 " column =" 0" colspan =" 2" >
459
459
<widget class =" QLabel" name =" textLabel2" >
460
460
<property name =" text" >
461
461
<string >< b> Note:< /b> Specify the search radius as a percentage of the map width</string >
465
465
</property >
466
466
</widget >
467
467
</item >
468
- <item row =" 1 " column =" 0" >
468
+ <item row =" 2 " column =" 0" >
469
469
<widget class =" QLabel" name =" textLabel1_3" >
470
470
<property name =" text" >
471
471
<string >Search radius for identifying features and displaying map tips</string >
475
475
</property >
476
476
</widget >
477
477
</item >
478
- <item row =" 1 " column =" 1" >
478
+ <item row =" 2 " column =" 1" >
479
479
<widget class =" QDoubleSpinBox" name =" spinBoxIdentifyValue" >
480
480
<property name =" suffix" >
481
481
<string >%</string >
504
504
</property >
505
505
</widget >
506
506
</item >
507
+ <item row =" 1" column =" 0" colspan =" 2" >
508
+ <widget class =" QCheckBox" name =" cbxAutoFeatureForm" >
509
+ <property name =" text" >
510
+ <string >Open feature form, if a single feature is identified</string >
511
+ </property >
512
+ </widget >
513
+ </item >
507
514
</layout >
508
515
</widget >
509
516
</item >
You can’t perform that action at this time.
0 commit comments