Skip to content

Commit

Permalink
set attribute dialog title
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12423 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 12, 2009
1 parent ffae675 commit 4e5a526
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/app/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
QGridLayout *gridLayout;
QFrame *mFrame;

if ( mDialog->objectName().isEmpty() )
mDialog->setObjectName( QString::fromUtf8( "QgsAttributeDialogBase" ) );

mDialog->resize( 447, 343 );
gridLayout = new QGridLayout( mDialog );
gridLayout->setSpacing( 6 );
Expand Down Expand Up @@ -181,6 +178,15 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
}
}

if ( mDialog )
{
if ( mDialog->objectName().isEmpty() )
mDialog->setObjectName( "QgsAttributeDialogBase" );

if ( mDialog->windowTitle().isEmpty() )
mDialog->setWindowTitle( tr( "Attributes - %1" ).arg( vl->name() ) );
}

if ( buttonBox )
{
buttonBox->clear();
Expand Down

0 comments on commit 4e5a526

Please sign in to comment.