styling stuff

This commit is contained in:
David 2018-03-29 15:22:41 +02:00
parent 5b7a525ed2
commit 05547398be
2 changed files with 5 additions and 5 deletions

View File

@ -408,7 +408,7 @@ QTreeWidgetItem *QgsAttributesFormProperties::loadAttributeEditorTreeItem( QgsAt
case QgsAttributeEditorElement::AeTypeRelation: case QgsAttributeEditorElement::AeTypeRelation:
{ {
const QgsAttributeEditorRelation *relationEditor = static_cast<const QgsAttributeEditorRelation *>( widgetDef ); const QgsAttributeEditorRelation *relationEditor = static_cast<const QgsAttributeEditorRelation *>( widgetDef );
DnDTreeItemData itemData = DnDTreeItemData( DnDTreeItemData::Relation, relationEditor->relation().id(), relationEditor->relation().name()); DnDTreeItemData itemData = DnDTreeItemData( DnDTreeItemData::Relation, relationEditor->relation().id(), relationEditor->relation().name() );
itemData.setShowLabel( widgetDef->showLabel() ); itemData.setShowLabel( widgetDef->showLabel() );
RelationEditorConfiguration relEdConfig; RelationEditorConfiguration relEdConfig;
relEdConfig.showLinkButton = relationEditor->showLinkButton(); relEdConfig.showLinkButton = relationEditor->showLinkButton();

View File

@ -319,7 +319,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
/** /**
* \deprecated since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally. * \deprecated since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
*/ */
Q_DECL_DEPRECATED QgsAttributeEditorRelation(const QString &name, const QString &relationId, QgsAttributeEditorElement *parent) Q_DECL_DEPRECATED QgsAttributeEditorRelation( const QString &name, const QString &relationId, QgsAttributeEditorElement *parent )
: QgsAttributeEditorElement( AeTypeRelation, name, parent ) : QgsAttributeEditorElement( AeTypeRelation, name, parent )
, mRelationId( relationId ) , mRelationId( relationId )
, mShowLinkButton( true ) , mShowLinkButton( true )
@ -329,7 +329,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
/** /**
* \deprecated since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally. * \deprecated since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
*/ */
Q_DECL_DEPRECATED QgsAttributeEditorRelation(const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent) Q_DECL_DEPRECATED QgsAttributeEditorRelation( const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent )
: QgsAttributeEditorElement( AeTypeRelation, name, parent ) : QgsAttributeEditorElement( AeTypeRelation, name, parent )
, mRelationId( relation.id() ) , mRelationId( relation.id() )
, mRelation( relation ) , mRelation( relation )
@ -343,7 +343,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
* \param relationId The id of the relation to embed * \param relationId The id of the relation to embed
* \param parent The parent (used as container) * \param parent The parent (used as container)
*/ */
QgsAttributeEditorRelation( const QString &relationId, QgsAttributeEditorElement *parent) QgsAttributeEditorRelation( const QString &relationId, QgsAttributeEditorElement *parent )
: QgsAttributeEditorElement( AeTypeRelation, relationId, parent ) : QgsAttributeEditorElement( AeTypeRelation, relationId, parent )
, mRelationId( relationId ) , mRelationId( relationId )
, mShowLinkButton( true ) , mShowLinkButton( true )
@ -356,7 +356,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
* \param relation The relation to embed * \param relation The relation to embed
* \param parent The parent (used as container) * \param parent The parent (used as container)
*/ */
QgsAttributeEditorRelation( const QgsRelation &relation, QgsAttributeEditorElement *parent) QgsAttributeEditorRelation( const QgsRelation &relation, QgsAttributeEditorElement *parent )
: QgsAttributeEditorElement( AeTypeRelation, relation.id(), parent ) : QgsAttributeEditorElement( AeTypeRelation, relation.id(), parent )
, mRelationId( relation.id() ) , mRelationId( relation.id() )
, mRelation( relation ) , mRelation( relation )