Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show revision in title bar for trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk@11757 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 5, 2009
1 parent 278e4a4 commit 3c1dbe4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
21 changes: 15 additions & 6 deletions src/app/qgisapp.cpp
Expand Up @@ -227,7 +227,16 @@ static void buildSupportedVectorFileFilter_( QString & fileFilters );
*/
static void setTitleBarText_( QWidget & qgisApp )
{
QString caption = QgisApp::tr( "Quantum GIS - %1 " ).arg( QGis::QGIS_VERSION );
QString caption = QgisApp::tr( "Quantum GIS " );

if ( QString( QGis::QGIS_VERSION ).endsWith( "Trunk" ) )
{
caption += QString( "r%1" ).arg( QGis::QGIS_SVN_VERSION );
}
else
{
caption += QGis::QGIS_VERSION;
}

if ( QgsProject::instance()->title().isEmpty() )
{
Expand All @@ -239,12 +248,12 @@ static void setTitleBarText_( QWidget & qgisApp )
else
{
QFileInfo projectFileInfo( QgsProject::instance()->fileName() );
caption += " " + projectFileInfo.baseName();
caption += " - " + projectFileInfo.baseName();
}
}
else
{
caption += QgsProject::instance()->title();
caption += " - " + QgsProject::instance()->title();
}

qgisApp.setWindowTitle( caption );
Expand Down Expand Up @@ -3158,7 +3167,7 @@ void QgisApp::newVectorLayer()
}
geometrytype = geomDialog.selectedType();
fileformat = geomDialog.selectedFileFormat();
QgsDebugMsg ( QString( "New file format will be: %1" ).arg( fileformat ) );
QgsDebugMsg( QString( "New file format will be: %1" ).arg( fileformat ) );

std::list<std::pair<QString, QString> > attributes;
geomDialog.attributes( attributes );
Expand Down Expand Up @@ -4780,8 +4789,8 @@ void QgisApp::loadPythonSupport()
#ifdef __MINGW32__
pythonlibName.prepend( "lib" );
#endif
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 );
QgsDebugMsg( QString("load library %1 (%2)").arg( pythonlibName ).arg( version ) );
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 );
QgsDebugMsg( QString( "load library %1 (%2)" ).arg( pythonlibName ).arg( version ) );
QLibrary pythonlib( pythonlibName, version );
// It's necessary to set these two load hints, otherwise Python library won't work correctly
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2
Expand Down
3 changes: 0 additions & 3 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -196,9 +196,6 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i

drawBackground( painter );


double currentScaleFactorX = horizontalViewScaleFactor();

if ( mComposition->plotStyle() == QgsComposition::Preview && mPreviewMode == Rectangle )
{
QFont messageFont( "", 12 );
Expand Down

0 comments on commit 3c1dbe4

Please sign in to comment.