|
|
|
@ -625,13 +625,18 @@ instantiates the classes as
|
|
|
|
QDeclarativeView view;
|
|
|
|
QDeclarativeView view;
|
|
|
|
\endcode
|
|
|
|
\endcode
|
|
|
|
|
|
|
|
|
|
|
|
it needs to be modified into
|
|
|
|
It needs to be modified into:
|
|
|
|
|
|
|
|
|
|
|
|
\code
|
|
|
|
\code
|
|
|
|
QApplication *app = MDeclarativeCache::qApplication(argc, argv);
|
|
|
|
QApplication *app = MDeclarativeCache::qApplication(argc, argv);
|
|
|
|
QDeclarativeView *window = MDeclarativeCache::qDeclarativeView();
|
|
|
|
QDeclarativeView *window = MDeclarativeCache::qDeclarativeView();
|
|
|
|
\endcode
|
|
|
|
\endcode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You also need to:
|
|
|
|
|
|
|
|
\code
|
|
|
|
|
|
|
|
#include <MDeclarativeCache>
|
|
|
|
|
|
|
|
\endcode
|
|
|
|
|
|
|
|
|
|
|
|
The cache class works both with the booster and without it. In the
|
|
|
|
The cache class works both with the booster and without it. In the
|
|
|
|
non-boosted case there are no pre-created instances, so the cache
|
|
|
|
non-boosted case there are no pre-created instances, so the cache
|
|
|
|
class simply creates the instances on the fly.
|
|
|
|
class simply creates the instances on the fly.
|