Skip to content
Permalink
Browse files

[Globe] Add bundled world.tif to raster imagery menu

  • Loading branch information
manisandro committed Jun 15, 2016
1 parent 4ba2433 commit cae029d48e57d1e34747ee241d83f1634131b5d4
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/plugins/globe/qgsglobeplugindialog.cpp
@@ -57,6 +57,12 @@ QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, Qt::WFlags fl )
addImageryMenu->addAction( tr( "WMS" ) )->setMenu( wmsImageryMenu );

QMenu* fileImageryMenu = new QMenu( this );
QString worldtif = QDir::cleanPath( QgsApplication::pkgDataPath() + "/globe/world.tif" );
if ( QgsApplication::isRunningFromBuildDir() )
{
worldtif = QDir::cleanPath( QgsApplication::buildSourcePath() + "/src/plugins/globe/images/world.tif" );
}
fileImageryMenu->addAction( tr( "world.tif" ), this, SLOT( addRasterImagery() ) )->setData( worldtif );
fileImageryMenu->addAction( tr( "Custom..." ), this, SLOT( addCustomRasterImagery() ) );
addImageryMenu->addAction( tr( "Raster" ) )->setMenu( fileImageryMenu );

0 comments on commit cae029d

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