@@ -227,7 +227,16 @@ static void buildSupportedVectorFileFilter_( QString & fileFilters );
227
227
*/
228
228
static void setTitleBarText_ ( QWidget & qgisApp )
229
229
{
230
- QString caption = QgisApp::tr ( " Quantum GIS - %1 " ).arg ( QGis::QGIS_VERSION );
230
+ QString caption = QgisApp::tr ( " Quantum GIS " );
231
+
232
+ if ( QString ( QGis::QGIS_VERSION ).endsWith ( " Trunk" ) )
233
+ {
234
+ caption += QString ( " r%1" ).arg ( QGis::QGIS_SVN_VERSION );
235
+ }
236
+ else
237
+ {
238
+ caption += QGis::QGIS_VERSION;
239
+ }
231
240
232
241
if ( QgsProject::instance ()->title ().isEmpty () )
233
242
{
@@ -239,12 +248,12 @@ static void setTitleBarText_( QWidget & qgisApp )
239
248
else
240
249
{
241
250
QFileInfo projectFileInfo ( QgsProject::instance ()->fileName () );
242
- caption += " " + projectFileInfo.baseName ();
251
+ caption += " - " + projectFileInfo.baseName ();
243
252
}
244
253
}
245
254
else
246
255
{
247
- caption += QgsProject::instance ()->title ();
256
+ caption += " - " + QgsProject::instance ()->title ();
248
257
}
249
258
250
259
qgisApp.setWindowTitle ( caption );
@@ -3158,7 +3167,7 @@ void QgisApp::newVectorLayer()
3158
3167
}
3159
3168
geometrytype = geomDialog.selectedType ();
3160
3169
fileformat = geomDialog.selectedFileFormat ();
3161
- QgsDebugMsg ( QString ( " New file format will be: %1" ).arg ( fileformat ) );
3170
+ QgsDebugMsg ( QString ( " New file format will be: %1" ).arg ( fileformat ) );
3162
3171
3163
3172
std::list<std::pair<QString, QString> > attributes;
3164
3173
geomDialog.attributes ( attributes );
@@ -4780,8 +4789,8 @@ void QgisApp::loadPythonSupport()
4780
4789
#ifdef __MINGW32__
4781
4790
pythonlibName.prepend ( " lib" );
4782
4791
#endif
4783
- QString version = QString (" %1.%2.%3" ).arg ( QGis::QGIS_VERSION_INT / 10000 ).arg ( QGis::QGIS_VERSION_INT / 100 % 100 ).arg ( QGis::QGIS_VERSION_INT % 100 );
4784
- QgsDebugMsg ( QString (" load library %1 (%2)" ).arg ( pythonlibName ).arg ( version ) );
4792
+ QString version = QString ( " %1.%2.%3" ).arg ( QGis::QGIS_VERSION_INT / 10000 ).arg ( QGis::QGIS_VERSION_INT / 100 % 100 ).arg ( QGis::QGIS_VERSION_INT % 100 );
4793
+ QgsDebugMsg ( QString ( " load library %1 (%2)" ).arg ( pythonlibName ).arg ( version ) );
4785
4794
QLibrary pythonlib ( pythonlibName, version );
4786
4795
// It's necessary to set these two load hints, otherwise Python library won't work correctly
4787
4796
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2
0 commit comments