Skip to content

Commit 3c1dbe4

Browse files
author
jef
committedOct 5, 2009
show revision in title bar for trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk@11757 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 278e4a4 commit 3c1dbe4

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed
 

‎src/app/qgisapp.cpp‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,16 @@ static void buildSupportedVectorFileFilter_( QString & fileFilters );
227227
*/
228228
static void setTitleBarText_( QWidget & qgisApp )
229229
{
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+
}
231240

232241
if ( QgsProject::instance()->title().isEmpty() )
233242
{
@@ -239,12 +248,12 @@ static void setTitleBarText_( QWidget & qgisApp )
239248
else
240249
{
241250
QFileInfo projectFileInfo( QgsProject::instance()->fileName() );
242-
caption += " " + projectFileInfo.baseName();
251+
caption += " - " + projectFileInfo.baseName();
243252
}
244253
}
245254
else
246255
{
247-
caption += QgsProject::instance()->title();
256+
caption += " - " + QgsProject::instance()->title();
248257
}
249258

250259
qgisApp.setWindowTitle( caption );
@@ -3158,7 +3167,7 @@ void QgisApp::newVectorLayer()
31583167
}
31593168
geometrytype = geomDialog.selectedType();
31603169
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 ) );
31623171

31633172
std::list<std::pair<QString, QString> > attributes;
31643173
geomDialog.attributes( attributes );
@@ -4780,8 +4789,8 @@ void QgisApp::loadPythonSupport()
47804789
#ifdef __MINGW32__
47814790
pythonlibName.prepend( "lib" );
47824791
#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 ) );
47854794
QLibrary pythonlib( pythonlibName, version );
47864795
// It's necessary to set these two load hints, otherwise Python library won't work correctly
47874796
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2

‎src/core/composer/qgscomposermap.cpp‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i
196196

197197
drawBackground( painter );
198198

199-
200-
double currentScaleFactorX = horizontalViewScaleFactor();
201-
202199
if ( mComposition->plotStyle() == QgsComposition::Preview && mPreviewMode == Rectangle )
203200
{
204201
QFont messageFont( "", 12 );

0 commit comments

Comments
 (0)
Please sign in to comment.