C
ApplicationConfiguration Class
class Qul::ApplicationConfigurationThe Application configuration class with text cache and other configurations. More...
Header: | #include <qul/application.h> |
Since: | Qt Quick Ultralite 2.1 |
Public Functions
void | setTextCacheEnabled(bool value) |
void | setTextCacheSize(int size) |
bool | textCacheEnabled() const |
int | textCacheSize() const |
Detailed Description
While creating Qul::Application instance, if it is required to configure application for text cache configurations, instance of this class is created with appropriate configurations and passed to Qul::Application constructor to enable these configurations before starting the application with Qul::Application::exec() function.
See also Running Qt Quick Ultralite in applications.
Member Function Documentation
[since Qt Quick Ultralite 2.1]
void ApplicationConfiguration::setTextCacheEnabled(bool value)
Enables or disables text cache.
Enables or disables the text cache based on the given value.
This function was introduced in Qt Quick Ultralite 2.1.
See also textCacheEnabled and Running Qt Quick Ultralite in applications.
[since Qt Quick Ultralite 2.1]
void ApplicationConfiguration::setTextCacheSize(int size)
Set text cache size specified in bytes.
Defines size of the text cache.
This function was introduced in Qt Quick Ultralite 2.1.
See also textCacheSize and Running Qt Quick Ultralite in applications.
[since Qt Quick Ultralite 2.1]
bool ApplicationConfiguration::textCacheEnabled() const
Returns a boolean value to indicate whether the text cache is enabled.
The text cache is disabled by default. You can enable it using setTextCacheEnabled().
This function was introduced in Qt Quick Ultralite 2.1.
See also setTextCacheEnabled and Running Qt Quick Ultralite in applications.
[since Qt Quick Ultralite 2.1]
int ApplicationConfiguration::textCacheSize() const
Returns int value representing the text cache size.
The text cache size is 0
by default. You can define a size for it using setTextCacheSize().
This function was introduced in Qt Quick Ultralite 2.1.
See also setTextCacheSize and Running Qt Quick Ultralite in applications.
Available under certain Qt licenses.
Find out more.