Skip to content
Permalink
Browse files

set attribute dialog title

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12423 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 12, 2009
1 parent 3fd10b4 commit ba12c036339de3e5512179de0620b710e3f516f1
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 ba12c03

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