[QGIS Commit] r12423 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Dec 12 14:49:53 EST 2009


Author: jef
Date: 2009-12-12 14:49:53 -0500 (Sat, 12 Dec 2009)
New Revision: 12423

Modified:
   trunk/qgis/src/app/qgsattributedialog.cpp
Log:
set attribute dialog title

Modified: trunk/qgis/src/app/qgsattributedialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributedialog.cpp	2009-12-12 19:49:18 UTC (rev 12422)
+++ trunk/qgis/src/app/qgsattributedialog.cpp	2009-12-12 19:49:53 UTC (rev 12423)
@@ -82,9 +82,6 @@
     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 @@
     }
   }
 
+  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();



More information about the QGIS-commit mailing list