31 , mOwnedFeature( featureOwner ? thepFeature : 0 )
36 init( vl, thepFeature, context, parent );
38 if ( !showDialogButtons )
45 , mOwnedFeature( featureOwner ? thepFeature : 0 )
47 init( vl, thepFeature, context, parent );
49 if ( !showDialogButtons )
69 QSettings().setValue( mSettingsPath +
"geometry", QDialog::saveGeometry() );
86 mAttributeForm->
save();
93 setAttribute( Qt::WA_DeleteOnClose );
102 setWindowTitle(
tr(
"%1 - Feature Attributes" ).arg( layer->
name() ) );
103 setLayout(
new QGridLayout() );
104 layout()->setMargin( 0 );
107 layout()->addWidget( mAttributeForm );
108 QDialogButtonBox* buttonBox = mAttributeForm->findChild<QDialogButtonBox*>();
109 connect( buttonBox, SIGNAL( rejected() ),
this, SLOT( reject() ) );
110 connect( buttonBox, SIGNAL( accepted() ),
this, SLOT(
accept() ) );
111 connect( layer, SIGNAL( layerDeleted() ),
this, SLOT( close() ) );
114 if ( menu->actions().size() > 0 )
116 QMenuBar* menuBar =
new QMenuBar(
this );
117 menuBar->addMenu( menu );
118 layout()->setMenuBar( menuBar );