Skip to content
Permalink
Browse files
No need to debug out qgsappication vars - just call showSettings()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8761 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 12, 2008
1 parent 12726cc commit e6d6bbdb9372fe7879e8faf0c3d2eeda2cb10b4f
Showing with 6 additions and 9 deletions.
  1. +6 −9 tests/src/core/testqgsmaprender.cpp
@@ -74,19 +74,16 @@ class TestQgsMapRender: public QObject

void TestQgsMapRender::initTestCase()
{
//
// Runs once before any tests are run
//
// init QGIS's paths - true means that all path will be inited from prefix
QString qgisPath = QCoreApplication::applicationDirPath ();
QgsApplication::setPrefixPath(qgisPath, TRUE);
#ifdef Q_OS_LINUX
QgsApplication::setPkgDataPath(qgisPath + "/../share/qgis");
QgsApplication::setPluginPath(qgisPath + "/../lib/qgis");
#endif
QgsApplication::setPrefixPath(INSTALL_PREFIX, true);
QgsApplication::showSettings();
// Instantiate the plugin directory so that providers are loaded
QgsProviderRegistry::instance(QgsApplication::pluginPath());
std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
std::cout << "User DB PATH: " << QgsApplication::qgisUserDbFilePath().toLocal8Bit().data() << std::endl;


//create some objects that will be used in all tests...
mEncoding = "UTF-8";

0 comments on commit e6d6bbd

Please sign in to comment.