The GraphicsItemLoader may be used to import a GraphicsItemCfg from a file. The imported configuration(s) will be cached.
More...
#include "GraphicsItemLoader.h"
|
bool | addSearchPath (const QString &_path) |
| Adds the provided path to the search paths list if valid. Before adding the path the string will be checked that it contains an existing path. The search path should end with a '/' (The suffix will be forced).
|
|
const std::list< QString > & | getSearchPaths (void) const |
| Returns the search paths.
|
|
GraphicsItemCfg * | createConfiguration (const QString &_subPath) |
| Imports and caches the specified GraphicsItemCfg. The first existing search path + sub path combination will be used.
|
|
The GraphicsItemLoader may be used to import a GraphicsItemCfg from a file. The imported configuration(s) will be cached.
◆ addSearchPath()
bool ot::GraphicsItemLoader::addSearchPath |
( |
const QString & | _path | ) |
|
Adds the provided path to the search paths list if valid. Before adding the path the string will be checked that it contains an existing path. The search path should end with a '/' (The suffix will be forced).
- Parameters
-
◆ createConfiguration()
Imports and caches the specified GraphicsItemCfg. The first existing search path + sub path combination will be used.
◆ getSearchPaths()
const std::list< QString > & ot::GraphicsItemLoader::getSearchPaths |
( |
void | | ) |
const |
|
inline |
Returns the search paths.
◆ instance()
Returns the global instance.
◆ ~GraphicsItemLoader()
ot::GraphicsItemLoader::~GraphicsItemLoader |
( |
| ) |
|
|
privatevirtual |
The documentation for this class was generated from the following files: