Skip to content
Permalink
Browse files

set attribute dialog title

git-svn-id: http://svn.osgeo.org/qgis/trunk@12423 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 12, 2009
1 parent ffae675 commit 4e5a5263e6ae2aef79fd4d4d57abd356146c7ccf
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/app/qgsattributedialog.cpp
@@ -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 );
@@ -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();

0 comments on commit 4e5a526

Please sign in to comment.
You can’t perform that action at this time.