mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix for paths in testqgsapplication
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7937 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
4565a7be6c
commit
d50955481d
@ -46,10 +46,7 @@ void TestQgsApplication::getPaths()
|
||||
{
|
||||
// init QGIS's paths - true means that all path will be inited from prefix
|
||||
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
|
||||
#ifdef Q_OS_LINUX
|
||||
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
|
||||
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
|
||||
#endif
|
||||
|
||||
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;
|
||||
@ -60,10 +57,7 @@ void TestQgsApplication::getPaths()
|
||||
void TestQgsApplication::checkTheme()
|
||||
{
|
||||
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
|
||||
#ifdef Q_OS_LINUX
|
||||
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
|
||||
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
|
||||
#endif
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user