mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
No need to debug out qgsappication vars - just call showSettings()
git-svn-id: http://svn.osgeo.org/qgis/trunk@8761 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
821f888f7b
commit
3f7541367a
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user