mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix widget registry (SIP), few fixes for relation reference widget
This commit is contained in:
parent
dce206e374
commit
d05d83ed79
@ -49,7 +49,8 @@ class QgsEditorWidgetRegistry : QObject
|
|||||||
QgsVectorLayer* vl,
|
QgsVectorLayer* vl,
|
||||||
int fieldIdx,
|
int fieldIdx,
|
||||||
const QgsEditorWidgetConfig& config,
|
const QgsEditorWidgetConfig& config,
|
||||||
QWidget* editor, QWidget* parent,
|
QWidget* editor,
|
||||||
|
QWidget* parent /TransferThis/,
|
||||||
const QgsAttributeEditorContext context = QgsAttributeEditorContext() ) /Factory/;
|
const QgsAttributeEditorContext context = QgsAttributeEditorContext() ) /Factory/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -275,7 +275,7 @@ void QgsRelationReferenceWidget::mapToolDeactivated()
|
|||||||
{
|
{
|
||||||
if ( mWindowWidget )
|
if ( mWindowWidget )
|
||||||
{
|
{
|
||||||
mWindowWidget->show();
|
mWindowWidget->raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( mMessageBar && mMessageBarItem )
|
if ( mMessageBar && mMessageBarItem )
|
||||||
@ -352,9 +352,9 @@ void QgsRelationReferenceWidget::setAllowMapIdentification( bool allowMapIdentif
|
|||||||
mAllowMapIdentification = allowMapIdentification;
|
mAllowMapIdentification = allowMapIdentification;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsRelationReferenceWidget::setOpenFormButtonVisible(bool openFormButtonVisible)
|
void QgsRelationReferenceWidget::setOpenFormButtonVisible( bool openFormButtonVisible )
|
||||||
{
|
{
|
||||||
mOpenFormButton->setVisible(openFormButtonVisible);
|
mOpenFormButton->setVisible( openFormButtonVisible );
|
||||||
mOpenFormButtonVisible = openFormButtonVisible;
|
mOpenFormButtonVisible = openFormButtonVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -518,9 +518,11 @@ void QgsRelationReferenceWidget::mapIdentification()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
mMapTool = new QgsMapToolIdentifyFeature( mCanvas, mReferencedLayer );
|
mMapTool = new QgsMapToolIdentifyFeature( mCanvas, mReferencedLayer );
|
||||||
|
mMapTool->setAction( mMapIdentificationAction );
|
||||||
mCanvas->setMapTool( mMapTool );
|
mCanvas->setMapTool( mMapTool );
|
||||||
mWindowWidget = window();
|
mWindowWidget = window();
|
||||||
mWindowWidget->hide();
|
mCanvas->raise();
|
||||||
|
|
||||||
connect( mMapTool, SIGNAL( featureIdentified( QgsFeature ) ), this, SLOT( featureIdentified( const QgsFeature ) ) );
|
connect( mMapTool, SIGNAL( featureIdentified( QgsFeature ) ), this, SLOT( featureIdentified( const QgsFeature ) ) );
|
||||||
connect( mMapTool, SIGNAL( deactivated() ), this, SLOT( mapToolDeactivated() ) );
|
connect( mMapTool, SIGNAL( deactivated() ), this, SLOT( mapToolDeactivated() ) );
|
||||||
|
|
||||||
@ -580,5 +582,5 @@ void QgsRelationReferenceWidget::featureIdentified( const QgsFeature& feature )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( mWindowWidget )
|
if ( mWindowWidget )
|
||||||
mWindowWidget->show();
|
mWindowWidget->raise();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user